37 lines
1.0 KiB
C#
37 lines
1.0 KiB
C#
using Microsoft.EntityFrameworkCore.Migrations;
|
|
|
|
#nullable disable
|
|
|
|
namespace Aberwyn.Migrations
|
|
{
|
|
public partial class AddPaymentStatusToBudgetItem : Migration
|
|
{
|
|
protected override void Up(MigrationBuilder migrationBuilder)
|
|
{
|
|
migrationBuilder.AddColumn<int>(
|
|
name: "PaymentStatus",
|
|
table: "BudgetItems",
|
|
type: "int",
|
|
nullable: false,
|
|
defaultValue: 0);
|
|
|
|
migrationBuilder.AddColumn<int>(
|
|
name: "DefaultPaymentStatus",
|
|
table: "BudgetItemDefinitions",
|
|
type: "int",
|
|
nullable: true);
|
|
}
|
|
|
|
protected override void Down(MigrationBuilder migrationBuilder)
|
|
{
|
|
migrationBuilder.DropColumn(
|
|
name: "PaymentStatus",
|
|
table: "BudgetItems");
|
|
|
|
migrationBuilder.DropColumn(
|
|
name: "DefaultPaymentStatus",
|
|
table: "BudgetItemDefinitions");
|
|
}
|
|
}
|
|
}
|