作者 tangxvhui

更新

... ... @@ -51,6 +51,7 @@ func init() {
&models.SummaryEvaluationValue{},
&models.Permission{},
&models.LogSms{},
&models.MessagePersonal{},
}
for _, model := range tables {
err := DB.Model(model).CreateTable(&orm.CreateTableOptions{
... ...
-- summary_evaluation_value表添加字段
ALTER TABLE public.summary_evaluation_value
ADD executor jsonb NULL;
-- 初始化旧数据的summary_evaluation_value.executor
UPDATE
public.summary_evaluation_value
SET
executor = public.summary_evaluation.executor
FROM
public.summary_evaluation
WHERE
public.summary_evaluation_value.summary_evaluation_id = public.summary_evaluation.id;
... ...