From f8c699ebbdb9d125e298362ddd0285c0fbf489bd Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?=E6=95=B0=E6=8D=AE=E5=B0=8F=E7=8E=8B=E5=AD=90?= Date: Tue, 12 Mar 2024 11:12:50 +0800 Subject: [PATCH] =?UTF-8?q?=E6=95=B0=E6=8D=AE=E5=BA=93=E8=84=9A=E6=9C=AC?= =?UTF-8?q?=E6=9B=B4=E6=96=B0=EF=BC=9A=E8=B6=85=E7=BA=A7=E7=AE=A1=E7=90=86?= =?UTF-8?q?=E5=91=98=E7=9A=84role=5Fkey=E7=94=B1admin=E4=BF=AE=E6=94=B9?= =?UTF-8?q?=E4=B8=BASuperAdminRole?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- script/sql/mysql/update.sql | 3 +++ script/sql/postgresql/update.sql | 3 +++ 2 files changed, 6 insertions(+) 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;