作者 郑周

1. 1.2.4脚本命令

正在显示 1 个修改的文件 包含 13 行增加9 行删除
-- 权限表建新列
ALTER TABLE public."permission" ADD opt_confirm_perf int8 NULL DEFAULT 1;
COMMENT ON COLUMN public."permission".opt_confirm_perf IS '是否需要员工确认绩效';
ALTER TABLE public."permission"
ADD opt_confirm_perf int8 NULL DEFAULT 1;
COMMENT
ON COLUMN public."permission".opt_confirm_perf IS '是否需要员工确认绩效';
ALTER TABLE public."permission" ADD cycle_deadline jsonb NULL;
COMMENT ON COLUMN public."permission".cycle_deadline IS '周期评估各业务截止时间';
ALTER TABLE public."permission"
ADD cycle_deadline jsonb NULL;
COMMENT
ON COLUMN public."permission".cycle_deadline IS '周期评估各业务截止时间';
-- 公司添加超级管理员(不存在时插入新数据)(注.公司ID->416)
... ... @@ -42,9 +46,8 @@ with temp_role as (
from
public."role"
where
"role".company_id = 416
and "role"."type" = 2
)
"role".company_id = 416
and "role"."type" = 2)
insert
into
public."role_user"
... ... @@ -64,12 +67,13 @@ select
from
temp_role
where
not exists (
not exists(
select
1
from
public."role_user"
where
"role_user".company_id = 416
"role_user".company_id = 416
and "role_user".user_id = 3337322891762688
and "role_user".role_id = temp_role."id");
--
\ No newline at end of file
... ...