From a2d657f5cb207e8a05f354e80aa83a13fb5cfbfe Mon Sep 17 00:00:00 2001 From: "nicolas.dorier" Date: Thu, 13 Feb 2020 23:58:48 +0900 Subject: [PATCH] Fix mysql migration --- BTCPayServer.Data/Migrations/20190225091644_AddOpenIddict.cs | 5 +++++ 1 file changed, 5 insertions(+) diff --git a/BTCPayServer.Data/Migrations/20190225091644_AddOpenIddict.cs b/BTCPayServer.Data/Migrations/20190225091644_AddOpenIddict.cs index 2e75a3523..9ba5de138 100644 --- a/BTCPayServer.Data/Migrations/20190225091644_AddOpenIddict.cs +++ b/BTCPayServer.Data/Migrations/20190225091644_AddOpenIddict.cs @@ -40,6 +40,11 @@ namespace BTCPayServer.Migrations onDelete: ReferentialAction.Restrict); }); + if (this.IsMySql(migrationBuilder.ActiveProvider)) + { + migrationBuilder.AlterColumn(name: "Id", table: "AspNetUsers", maxLength: maxLength); + } + migrationBuilder.CreateTable( name: "OpenIddictScopes", columns: table => new