32 lines
860 B
C#
32 lines
860 B
C#
using Microsoft.EntityFrameworkCore.Migrations;
|
|
|
|
#nullable disable
|
|
|
|
namespace Budget.Infrastructure.Data.Migrations
|
|
{
|
|
/// <inheritdoc />
|
|
public partial class RemoveEffectiveTaxRate : Migration
|
|
{
|
|
/// <inheritdoc />
|
|
protected override void Up(MigrationBuilder migrationBuilder)
|
|
{
|
|
migrationBuilder.DropColumn(
|
|
name: "EffectiveTaxRate",
|
|
table: "Budgets");
|
|
}
|
|
|
|
/// <inheritdoc />
|
|
protected override void Down(MigrationBuilder migrationBuilder)
|
|
{
|
|
migrationBuilder.AddColumn<decimal>(
|
|
name: "EffectiveTaxRate",
|
|
table: "Budgets",
|
|
type: "numeric(5,4)",
|
|
precision: 5,
|
|
scale: 4,
|
|
nullable: false,
|
|
defaultValue: 0m);
|
|
}
|
|
}
|
|
}
|