mirror of
https://github.com/btcpayserver/btcpayserver.git
synced 2024-11-19 09:54:30 +01:00
33 lines
947 B
C#
33 lines
947 B
C#
using BTCPayServer.Data;
|
|
using Microsoft.EntityFrameworkCore.Infrastructure;
|
|
using Microsoft.EntityFrameworkCore.Migrations;
|
|
|
|
namespace BTCPayServer.Migrations
|
|
{
|
|
|
|
[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)
|
|
{
|
|
if (this.SupportDropColumn(migrationBuilder.ActiveProvider))
|
|
{
|
|
migrationBuilder.DropColumn(
|
|
name: "Severity",
|
|
table: "InvoiceEvents");
|
|
|
|
}
|
|
}
|
|
}
|
|
}
|