Merge pull request #1487 from ketominer/master

Fix MySQL support (fixed width columns instead of blobs) replaces #1484
This commit is contained in:
Nicolas Dorier
2020-04-19 21:26:36 +09:00
committed by GitHub
3 changed files with 6 additions and 6 deletions

View File

@@ -114,8 +114,8 @@ namespace BTCPayServer.Migrations
name: "AspNetUserLogins",
columns: table => new
{
LoginProvider = table.Column<string>(nullable: false),
ProviderKey = table.Column<string>(nullable: false),
LoginProvider = table.Column<string>(nullable: false, maxLength: 255),
ProviderKey = table.Column<string>(nullable: false, maxLength: 255),
ProviderDisplayName = table.Column<string>(nullable: true),
UserId = table.Column<string>(nullable: false, maxLength: maxLength)
},
@@ -159,8 +159,8 @@ namespace BTCPayServer.Migrations
columns: table => new
{
UserId = table.Column<string>(nullable: false, maxLength: maxLength),
LoginProvider = table.Column<string>(nullable: false),
Name = table.Column<string>(nullable: false),
LoginProvider = table.Column<string>(nullable: false, maxLength: 64),
Name = table.Column<string>(nullable: false, maxLength: 64),
Value = table.Column<string>(nullable: true)
},
constraints: table =>

View File

@@ -22,7 +22,7 @@ namespace BTCPayServer.Migrations
Label = table.Column<string>(nullable: true),
Name = table.Column<string>(nullable: true),
PairingTime = table.Column<DateTimeOffset>(nullable: false),
SIN = table.Column<string>(nullable: true),
SIN = table.Column<string>(nullable: true, maxLength: maxLength),
StoreDataId = table.Column<string>(nullable: true, maxLength: maxLength)
},
constraints: table =>

View File

@@ -23,7 +23,7 @@ namespace BTCPayServer.Migrations
columns: table => new
{
InvoiceDataId = table.Column<string>(nullable: false, maxLength: maxLength),
Address = table.Column<string>(nullable: false),
Address = table.Column<string>(nullable: false, maxLength: this.IsMySql(migrationBuilder.ActiveProvider) ? (int?)512 : null),
Assigned = table.Column<DateTimeOffset>(nullable: false),
UnAssigned = table.Column<DateTimeOffset>(nullable: true)
},