diff --git a/BTCPayServer.Data/Migrations/20170913143004_Init.cs b/BTCPayServer.Data/Migrations/20170913143004_Init.cs index e77143dac..d86651694 100644 --- a/BTCPayServer.Data/Migrations/20170913143004_Init.cs +++ b/BTCPayServer.Data/Migrations/20170913143004_Init.cs @@ -114,8 +114,8 @@ namespace BTCPayServer.Migrations name: "AspNetUserLogins", columns: table => new { - LoginProvider = table.Column(nullable: false), - ProviderKey = table.Column(nullable: false), + LoginProvider = table.Column(nullable: false, maxLength: 255), + ProviderKey = table.Column(nullable: false, maxLength: 255), ProviderDisplayName = table.Column(nullable: true), UserId = table.Column(nullable: false, maxLength: maxLength) }, @@ -159,8 +159,8 @@ namespace BTCPayServer.Migrations columns: table => new { UserId = table.Column(nullable: false, maxLength: maxLength), - LoginProvider = table.Column(nullable: false), - Name = table.Column(nullable: false), + LoginProvider = table.Column(nullable: false, maxLength: 64), + Name = table.Column(nullable: false, maxLength: 64), Value = table.Column(nullable: true) }, constraints: table => diff --git a/BTCPayServer.Data/Migrations/20171010082424_Tokens.cs b/BTCPayServer.Data/Migrations/20171010082424_Tokens.cs index 1e46a7a66..5fad5ceb8 100644 --- a/BTCPayServer.Data/Migrations/20171010082424_Tokens.cs +++ b/BTCPayServer.Data/Migrations/20171010082424_Tokens.cs @@ -22,7 +22,7 @@ namespace BTCPayServer.Migrations Label = table.Column(nullable: true), Name = table.Column(nullable: true), PairingTime = table.Column(nullable: false), - SIN = table.Column(nullable: true), + SIN = table.Column(nullable: true, maxLength: maxLength), StoreDataId = table.Column(nullable: true, maxLength: maxLength) }, constraints: table => diff --git a/BTCPayServer.Data/Migrations/20171024163354_RenewUsedAddresses.cs b/BTCPayServer.Data/Migrations/20171024163354_RenewUsedAddresses.cs index 2f75e139d..ae308e5c1 100644 --- a/BTCPayServer.Data/Migrations/20171024163354_RenewUsedAddresses.cs +++ b/BTCPayServer.Data/Migrations/20171024163354_RenewUsedAddresses.cs @@ -23,7 +23,7 @@ namespace BTCPayServer.Migrations columns: table => new { InvoiceDataId = table.Column(nullable: false, maxLength: maxLength), - Address = table.Column(nullable: false), + Address = table.Column(nullable: false, maxLength: this.IsMySql(migrationBuilder.ActiveProvider) ? (int?)512 : null), Assigned = table.Column(nullable: false), UnAssigned = table.Column(nullable: true) },