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