修改数据库id_token字段宽度
This commit is contained in:
parent
5b131ad3fd
commit
e5ca734018
@ -1048,7 +1048,7 @@ create table sys_social
|
|||||||
union_id varchar(255) default null comment '用户的 unionid',
|
union_id varchar(255) default null comment '用户的 unionid',
|
||||||
scope varchar(255) default null comment '授予的权限,部分平台可能没有',
|
scope varchar(255) default null comment '授予的权限,部分平台可能没有',
|
||||||
token_type varchar(255) default null comment '个别平台的授权信息,部分平台可能没有',
|
token_type varchar(255) default null comment '个别平台的授权信息,部分平台可能没有',
|
||||||
id_token varchar(255) default null comment 'id token,部分平台可能没有',
|
id_token varchar(2000) default null comment 'id token,部分平台可能没有',
|
||||||
mac_algorithm varchar(255) default null comment '小米平台用户的附带属性,部分平台可能没有',
|
mac_algorithm varchar(255) default null comment '小米平台用户的附带属性,部分平台可能没有',
|
||||||
mac_key varchar(255) default null comment '小米平台用户的附带属性,部分平台可能没有',
|
mac_key varchar(255) default null comment '小米平台用户的附带属性,部分平台可能没有',
|
||||||
code varchar(255) default null comment '用户的授权code,部分平台可能没有',
|
code varchar(255) default null comment '用户的授权code,部分平台可能没有',
|
||||||
|
@ -57,3 +57,8 @@ UPDATE `sys_post` SET `tenant_id`=1 WHERE `tenant_id`=0;
|
|||||||
UPDATE `sys_role` SET `tenant_id`=1 WHERE `tenant_id`=0;
|
UPDATE `sys_role` SET `tenant_id`=1 WHERE `tenant_id`=0;
|
||||||
UPDATE `sys_social` SET `tenant_id`=1 WHERE `tenant_id`=0;
|
UPDATE `sys_social` SET `tenant_id`=1 WHERE `tenant_id`=0;
|
||||||
UPDATE `sys_user` SET `tenant_id`=1 WHERE `tenant_id`=0;
|
UPDATE `sys_user` SET `tenant_id`=1 WHERE `tenant_id`=0;
|
||||||
|
|
||||||
|
---- 升级 from V5.1.0 to V5.2.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`;
|
||||||
|
@ -1389,7 +1389,7 @@ create table if not exists sys_social
|
|||||||
union_id varchar(255) default null::varchar,
|
union_id varchar(255) default null::varchar,
|
||||||
scope varchar(255) default null::varchar,
|
scope varchar(255) default null::varchar,
|
||||||
token_type varchar(255) default null::varchar,
|
token_type varchar(255) default null::varchar,
|
||||||
id_token varchar(255) default null::varchar,
|
id_token varchar(2000) default null::varchar,
|
||||||
mac_algorithm varchar(255) default null::varchar,
|
mac_algorithm varchar(255) default null::varchar,
|
||||||
mac_key varchar(255) default null::varchar,
|
mac_key varchar(255) default null::varchar,
|
||||||
code varchar(255) default null::varchar,
|
code varchar(255) default null::varchar,
|
||||||
|
@ -115,3 +115,11 @@ UPDATE "public"."sys_post" SET "tenant_id"=1 WHERE "tenant_id"=0;
|
|||||||
UPDATE "public"."sys_role" SET "tenant_id"=1 WHERE "tenant_id"=0;
|
UPDATE "public"."sys_role" SET "tenant_id"=1 WHERE "tenant_id"=0;
|
||||||
UPDATE "public"."sys_social" SET "tenant_id"=1 WHERE "tenant_id"=0;
|
UPDATE "public"."sys_social" SET "tenant_id"=1 WHERE "tenant_id"=0;
|
||||||
UPDATE "public"."sys_user" SET "tenant_id"=1 WHERE "tenant_id"=0;
|
UPDATE "public"."sys_user" SET "tenant_id"=1 WHERE "tenant_id"=0;
|
||||||
|
|
||||||
|
---- 升级 from V5.1.0 to V5.2.0:
|
||||||
|
-- 修改数据库id_token字段宽度
|
||||||
|
ALTER TABLE "sys_social"
|
||||||
|
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,部分平台可能没有';
|
||||||
|
Loading…
Reference in New Issue
Block a user