...
|
...
|
@@ -84,9 +84,17 @@ ALTER TABLE public.evaluation_project |
|
|
|
|
|
COMMENT ON COLUMN public.evaluation_project.summary_state IS '周期评估是否下发';
|
|
|
|
|
|
-- 变更user表字段
|
|
|
ALTER TABLE "public"."user"
|
|
|
ADD COLUMN "parent_id" int8 DEFAULT 0;
|
|
|
-- 处理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';
|
|
|
|
...
|
...
|
|