Files
Backend-Api/CompanyManagment.EFCore/Migrations/20250408153034_add shift duration to leave.cs
2025-04-08 19:27:25 +03:30

42 lines
1.1 KiB
C#

using Microsoft.EntityFrameworkCore.Migrations;
#nullable disable
namespace CompanyManagment.EFCore.Migrations
{
/// <inheritdoc />
public partial class addshiftdurationtoleave : Migration
{
/// <inheritdoc />
protected override void Up(MigrationBuilder migrationBuilder)
{
migrationBuilder.AddColumn<bool>(
name: "HasShiftDuration",
table: "Leave",
type: "bit",
nullable: false,
defaultValue: false);
migrationBuilder.AddColumn<string>(
name: "ShiftDuration",
table: "Leave",
type: "nvarchar(30)",
maxLength: 30,
nullable: false,
defaultValue: "");
}
/// <inheritdoc />
protected override void Down(MigrationBuilder migrationBuilder)
{
migrationBuilder.DropColumn(
name: "HasShiftDuration",
table: "Leave");
migrationBuilder.DropColumn(
name: "ShiftDuration",
table: "Leave");
}
}
}