2017-10-12 09:33:53 +02:00
|
|
|
|
using Microsoft.EntityFrameworkCore.Migrations;
|
|
|
|
|
using System;
|
|
|
|
|
using System.Collections.Generic;
|
|
|
|
|
|
|
|
|
|
namespace BTCPayServer.Migrations
|
|
|
|
|
{
|
2017-10-27 10:53:04 +02:00
|
|
|
|
public partial class PendingInvoices : Migration
|
|
|
|
|
{
|
|
|
|
|
protected override void Up(MigrationBuilder migrationBuilder)
|
|
|
|
|
{
|
2018-01-06 10:57:56 +01:00
|
|
|
|
if (this.SupportDropColumn(migrationBuilder.ActiveProvider))
|
2017-10-27 10:53:04 +02:00
|
|
|
|
{
|
|
|
|
|
migrationBuilder.DropColumn(
|
|
|
|
|
name: "Name",
|
|
|
|
|
table: "PairingCodes");
|
2017-10-12 09:33:53 +02:00
|
|
|
|
|
2017-10-27 10:53:04 +02:00
|
|
|
|
migrationBuilder.DropColumn(
|
|
|
|
|
name: "Name",
|
|
|
|
|
table: "PairedSINData");
|
|
|
|
|
}
|
|
|
|
|
migrationBuilder.CreateTable(
|
|
|
|
|
name: "PendingInvoices",
|
|
|
|
|
columns: table => new
|
|
|
|
|
{
|
2018-05-10 04:56:46 +02:00
|
|
|
|
Id = table.Column<string>(nullable: false)
|
2017-10-27 10:53:04 +02:00
|
|
|
|
},
|
|
|
|
|
constraints: table =>
|
|
|
|
|
{
|
|
|
|
|
table.PrimaryKey("PK_PendingInvoices", x => x.Id);
|
|
|
|
|
});
|
|
|
|
|
}
|
2017-10-12 09:33:53 +02:00
|
|
|
|
|
2017-10-27 10:53:04 +02:00
|
|
|
|
protected override void Down(MigrationBuilder migrationBuilder)
|
|
|
|
|
{
|
|
|
|
|
migrationBuilder.DropTable(
|
|
|
|
|
name: "PendingInvoices");
|
2017-10-12 09:33:53 +02:00
|
|
|
|
|
2017-10-27 10:53:04 +02:00
|
|
|
|
migrationBuilder.AddColumn<string>(
|
|
|
|
|
name: "Name",
|
|
|
|
|
table: "PairingCodes",
|
|
|
|
|
nullable: true);
|
2017-10-12 09:33:53 +02:00
|
|
|
|
|
2017-10-27 10:53:04 +02:00
|
|
|
|
migrationBuilder.AddColumn<string>(
|
|
|
|
|
name: "Name",
|
|
|
|
|
table: "PairedSINData",
|
|
|
|
|
nullable: true);
|
|
|
|
|
}
|
|
|
|
|
}
|
2017-10-12 09:33:53 +02:00
|
|
|
|
}
|