mirror of
https://github.com/btcpayserver/btcpayserver.git
synced 2025-02-21 14:04:12 +01:00
Fix mysql
This commit is contained in:
parent
a2d657f5cb
commit
ff4c7c364e
1 changed files with 4 additions and 5 deletions
|
@ -12,6 +12,10 @@ namespace BTCPayServer.Migrations
|
|||
protected override void Up(MigrationBuilder migrationBuilder)
|
||||
{
|
||||
int? maxLength = this.IsMySql(migrationBuilder.ActiveProvider) ? (int?)255 : null;
|
||||
if (this.IsMySql(migrationBuilder.ActiveProvider))
|
||||
{
|
||||
migrationBuilder.AlterColumn<string>(name: "Id", table: "AspNetUsers", maxLength: maxLength);
|
||||
}
|
||||
migrationBuilder.CreateTable(
|
||||
name: "OpenIddictApplications",
|
||||
columns: table => new
|
||||
|
@ -40,11 +44,6 @@ namespace BTCPayServer.Migrations
|
|||
onDelete: ReferentialAction.Restrict);
|
||||
});
|
||||
|
||||
if (this.IsMySql(migrationBuilder.ActiveProvider))
|
||||
{
|
||||
migrationBuilder.AlterColumn<string>(name: "Id", table: "AspNetUsers", maxLength: maxLength);
|
||||
}
|
||||
|
||||
migrationBuilder.CreateTable(
|
||||
name: "OpenIddictScopes",
|
||||
columns: table => new
|
||||
|
|
Loading…
Add table
Reference in a new issue