41 lines
1.1 KiB
C#
41 lines
1.1 KiB
C#
using Microsoft.EntityFrameworkCore.Migrations;
|
|
|
|
#nullable disable
|
|
|
|
namespace General_Ledger_Service.Migrations
|
|
{
|
|
/// <inheritdoc />
|
|
public partial class AddCashAccountDefaultProtection : Migration
|
|
{
|
|
/// <inheritdoc />
|
|
protected override void Up(MigrationBuilder migrationBuilder)
|
|
{
|
|
migrationBuilder.AddColumn<bool>(
|
|
name: "is_active",
|
|
table: "cash_account",
|
|
type: "tinyint(1)",
|
|
nullable: false,
|
|
defaultValue: true);
|
|
|
|
migrationBuilder.AddColumn<bool>(
|
|
name: "is_default",
|
|
table: "cash_account",
|
|
type: "tinyint(1)",
|
|
nullable: false,
|
|
defaultValue: false);
|
|
}
|
|
|
|
/// <inheritdoc />
|
|
protected override void Down(MigrationBuilder migrationBuilder)
|
|
{
|
|
migrationBuilder.DropColumn(
|
|
name: "is_active",
|
|
table: "cash_account");
|
|
|
|
migrationBuilder.DropColumn(
|
|
name: "is_default",
|
|
table: "cash_account");
|
|
}
|
|
}
|
|
}
|