diff --git a/script/sql/mysql/update.sql b/script/sql/mysql/update.sql index 1e74884..a082b14 100644 --- a/script/sql/mysql/update.sql +++ b/script/sql/mysql/update.sql @@ -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; diff --git a/script/sql/postgresql/update.sql b/script/sql/postgresql/update.sql index de32dcf..c565f71 100644 --- a/script/sql/postgresql/update.sql +++ b/script/sql/postgresql/update.sql @@ -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;