mirror of
https://github.com/btcpayserver/btcpayserver.git
synced 2025-02-22 06:21:44 +01:00
parent
d32a24004e
commit
e2b2cf0175
1 changed files with 14 additions and 8 deletions
|
@ -7,9 +7,12 @@ namespace BTCPayServer.Migrations
|
||||||
{
|
{
|
||||||
protected override void Up(MigrationBuilder migrationBuilder)
|
protected override void Up(MigrationBuilder migrationBuilder)
|
||||||
{
|
{
|
||||||
migrationBuilder.DropColumn(
|
if (this.SupportDropColumn(migrationBuilder.ActiveProvider))
|
||||||
name: "Facade",
|
{
|
||||||
table: "PairedSINData");
|
migrationBuilder.DropColumn(
|
||||||
|
name: "Facade",
|
||||||
|
table: "PairedSINData");
|
||||||
|
}
|
||||||
|
|
||||||
migrationBuilder.CreateTable(
|
migrationBuilder.CreateTable(
|
||||||
name: "U2FDevices",
|
name: "U2FDevices",
|
||||||
|
@ -44,11 +47,14 @@ namespace BTCPayServer.Migrations
|
||||||
{
|
{
|
||||||
migrationBuilder.DropTable(
|
migrationBuilder.DropTable(
|
||||||
name: "U2FDevices");
|
name: "U2FDevices");
|
||||||
|
//if it did not support dropping it, then it is still here and re-adding it would throw
|
||||||
migrationBuilder.AddColumn<string>(
|
if (this.SupportDropColumn(migrationBuilder.ActiveProvider))
|
||||||
name: "Facade",
|
{
|
||||||
table: "PairedSINData",
|
migrationBuilder.AddColumn<string>(
|
||||||
nullable: true);
|
name: "Facade",
|
||||||
|
table: "PairedSINData",
|
||||||
|
nullable: true);
|
||||||
|
}
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
Loading…
Add table
Reference in a new issue