数据库脚本更新:超级管理员的role_key由admin修改为SuperAdminRole

This commit is contained in:
数据小王子 2024-03-12 11:12:50 +08:00
parent c91f9686d7
commit f8c699ebbd
2 changed files with 6 additions and 0 deletions

View File

@ -62,3 +62,6 @@ UPDATE `sys_user` SET `tenant_id`=1 WHERE `tenant_id`=0;
-- 修改数据库id_token字段宽度
ALTER TABLE `sys_social`
CHANGE COLUMN `id_token` `id_token` VARCHAR(2000) NULL DEFAULT NULL COMMENT 'id token部分平台可能没有' COLLATE 'utf8mb4_bin' AFTER `token_type`;
-- 数据库超级管理员的role_key由admin修改为SuperAdminRole
UPDATE `sys_role` SET `role_key`='SuperAdminRole' WHERE `role_id`=1;

View File

@ -123,3 +123,6 @@ ALTER COLUMN "id_token" TYPE VARCHAR(2000),
ALTER COLUMN "id_token" DROP NOT NULL,
ALTER COLUMN "id_token" SET DEFAULT NULL::character varying;
COMMENT ON COLUMN "sys_social"."id_token" IS 'id token部分平台可能没有';
-- 数据库超级管理员的role_key由admin修改为SuperAdminRole
UPDATE "public"."sys_role" SET "role_key"='SuperAdminRole' WHERE "role_id"=1;