From 62dedde910fff3b40f2004ae46400099e5bc7d24 Mon Sep 17 00:00:00 2001 From: cKey <35512826+colinin@users.noreply.github.com> Date: Sat, 26 Dec 2020 14:41:44 +0800 Subject: [PATCH] Use the latest version of the mysql language --- .../account/AuthServer.Host/identity-server-upgrate-4.1.sql | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/aspnet-core/services/account/AuthServer.Host/identity-server-upgrate-4.1.sql b/aspnet-core/services/account/AuthServer.Host/identity-server-upgrate-4.1.sql index 036e085aa..f2b11f366 100644 --- a/aspnet-core/services/account/AuthServer.Host/identity-server-upgrate-4.1.sql +++ b/aspnet-core/services/account/AuthServer.Host/identity-server-upgrate-4.1.sql @@ -177,9 +177,9 @@ CALL PROC_DROP_COLUMN('IdentityServerApiResources', 'Properties'); ALTER TABLE `IdentityServerApiClaims` RENAME `IdentityServerApiResourceClaims`; -ALTER TABLE `IdentityServerApiScopes` RENAME COLUMN `ApiResourceId` TO `Id`; +ALTER TABLE `IdentityServerApiScopes` CHANGE COLUMN `ApiResourceId` `Id` CHAR(36); -ALTER TABLE `IdentityServerApiScopeClaims` RENAME COLUMN `ApiResourceId` TO `ApiScopeId`; +ALTER TABLE `IdentityServerApiScopeClaims` CHANGE COLUMN `ApiResourceId` `ApiScopeId` CHAR(36); -- 将要删除此表的所有数据,请注意 TRUNCATE TABLE `IdentityServerApiScopeClaims`;