btcpayserver/BTCPayServer.Data/Migrations/20200901161733_AddInvoiceEventLogSeverity.cs

29 lines
833 B
C#
Raw Normal View History

2021-12-31 16:59:02 +09:00
using BTCPayServer.Data;
using Microsoft.EntityFrameworkCore.Infrastructure;
using Microsoft.EntityFrameworkCore.Migrations;
namespace BTCPayServer.Migrations
{
2021-12-31 16:59:02 +09:00
[DbContext(typeof(ApplicationDbContext))]
[Migration("20200901161733_AddInvoiceEventLogSeverity")]
public partial class AddInvoiceEventLogSeverity : Migration
{
protected override void Up(MigrationBuilder migrationBuilder)
{
migrationBuilder.AddColumn<int>(
name: "Severity",
table: "InvoiceEvents",
nullable: false,
defaultValue: 0);
}
protected override void Down(MigrationBuilder migrationBuilder)
{
2024-04-15 19:08:25 +09:00
migrationBuilder.DropColumn(
name: "Severity",
table: "InvoiceEvents");
}
}
}