Files
Backend-Api/CompanyManagment.EFCore/Migrations/20241027151519_FNameLName added to rollcall employee.cs
2024-10-28 19:01:02 +03:30

52 lines
1.5 KiB
C#

using Microsoft.EntityFrameworkCore.Migrations;
#nullable disable
namespace CompanyManagment.EFCore.Migrations
{
/// <inheritdoc />
public partial class FNameLNameaddedtorollcallemployee : Migration
{
/// <inheritdoc />
protected override void Up(MigrationBuilder migrationBuilder)
{
migrationBuilder.AddColumn<string>(
name: "FName",
table: "RollCallEmployees",
type: "nvarchar(50)",
maxLength: 50,
nullable: true);
migrationBuilder.AddColumn<bool>(
name: "HasChangedName",
table: "RollCallEmployees",
type: "bit",
nullable: false,
defaultValue: false);
migrationBuilder.AddColumn<string>(
name: "LName",
table: "RollCallEmployees",
type: "nvarchar(50)",
maxLength: 50,
nullable: true);
}
/// <inheritdoc />
protected override void Down(MigrationBuilder migrationBuilder)
{
migrationBuilder.DropColumn(
name: "FName",
table: "RollCallEmployees");
migrationBuilder.DropColumn(
name: "HasChangedName",
table: "RollCallEmployees");
migrationBuilder.DropColumn(
name: "LName",
table: "RollCallEmployees");
}
}
}