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