Files
Backend-Api/CompanyManagment.EFCore/Migrations/20240402143033_addYearMonthToLeaveTable.cs
2024-07-05 21:36:15 +03:30

41 lines
1.0 KiB
C#

using Microsoft.EntityFrameworkCore.Migrations;
#nullable disable
namespace CompanyManagment.EFCore.Migrations
{
/// <inheritdoc />
public partial class addYearMonthToLeaveTable : Migration
{
/// <inheritdoc />
protected override void Up(MigrationBuilder migrationBuilder)
{
migrationBuilder.AddColumn<int>(
name: "Month",
table: "Leave",
type: "int",
nullable: false,
defaultValue: 0);
migrationBuilder.AddColumn<int>(
name: "Year",
table: "Leave",
type: "int",
nullable: false,
defaultValue: 0);
}
/// <inheritdoc />
protected override void Down(MigrationBuilder migrationBuilder)
{
migrationBuilder.DropColumn(
name: "Month",
table: "Leave");
migrationBuilder.DropColumn(
name: "Year",
table: "Leave");
}
}
}