btcpayserver/BTCPayServer.Data/Migrations/20171105235734_PaymentAccounted.cs

29 lines
904 B
C#
Raw Normal View History

2020-06-28 17:55:27 +09:00
using BTCPayServer.Data;
2019-08-30 17:55:24 +09:00
using Microsoft.EntityFrameworkCore.Infrastructure;
using Microsoft.EntityFrameworkCore.Migrations;
2017-11-06 00:31:02 -08:00
namespace BTCPayServer.Migrations
{
2019-08-30 17:55:24 +09:00
[DbContext(typeof(ApplicationDbContext))]
[Migration("20171105235734_PaymentAccounted")]
2017-11-06 00:31:02 -08:00
public partial class PaymentAccounted : Migration
{
protected override void Up(MigrationBuilder migrationBuilder)
{
int? maxLength = this.IsMySql(migrationBuilder.ActiveProvider) ? (int?)255 : null;
2017-11-06 00:31:02 -08:00
migrationBuilder.AddColumn<bool>(
name: "Accounted",
table: "Payments",
nullable: false,
defaultValue: false);
}
protected override void Down(MigrationBuilder migrationBuilder)
{
migrationBuilder.DropColumn(
name: "Accounted",
table: "Payments");
}
}
}