mirror of
https://github.com/btcpayserver/btcpayserver.git
synced 2025-01-19 05:33:31 +01:00
Fix mysql
This commit is contained in:
parent
a2d657f5cb
commit
ff4c7c364e
@ -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…
Reference in New Issue
Block a user