|
@@ -84,8 +84,16 @@ ALTER TABLE public.evaluation_project |
|
@@ -84,8 +84,16 @@ ALTER TABLE public.evaluation_project |
84
|
|
84
|
|
85
|
COMMENT ON COLUMN public.evaluation_project.summary_state IS '周期评估是否下发';
|
85
|
COMMENT ON COLUMN public.evaluation_project.summary_state IS '周期评估是否下发';
|
86
|
|
86
|
|
87
|
--- 变更user表字段
|
|
|
88
|
-ALTER TABLE "public"."user"
|
87
|
+-- 处理evaluation_project表字段summary_state 初始值
|
|
|
88
|
+UPDATE
|
|
|
89
|
+ evaluation_project
|
|
|
90
|
+SET
|
|
|
91
|
+ summary_state = 1
|
|
|
92
|
+WHERE
|
|
|
93
|
+ end_time <= now()
|
|
|
94
|
+ AND deleted_at ISNULL
|
|
|
95
|
+ -- 变更user表字段
|
|
|
96
|
+ ALTER TABLE "public"."user"
|
89
|
ADD COLUMN "parent_id" int8 DEFAULT 0;
|
97
|
ADD COLUMN "parent_id" int8 DEFAULT 0;
|
90
|
|
98
|
|
91
|
COMMENT ON COLUMN "public"."user"."parent_id" IS '上级ID';
|
99
|
COMMENT ON COLUMN "public"."user"."parent_id" IS '上级ID';
|