hrms-api-backend/BMA.EHR.Infrastructure/Migrations/LeaveDb/20250423025058_Add Profile Info to LeaveBegining.cs
Suphonchai Phoonsawat 19c30e69df
Some checks failed
release-dev / release-dev (push) Failing after 11s
CRUD Leave Beginning
2025-04-23 11:25:12 +07:00

51 lines
1.5 KiB
C#

using Microsoft.EntityFrameworkCore.Migrations;
#nullable disable
namespace BMA.EHR.Infrastructure.Migrations.LeaveDb
{
/// <inheritdoc />
public partial class AddProfileInfotoLeaveBegining : Migration
{
/// <inheritdoc />
protected override void Up(MigrationBuilder migrationBuilder)
{
migrationBuilder.AddColumn<string>(
name: "FirstName",
table: "LeaveBeginnings",
type: "longtext",
nullable: true)
.Annotation("MySql:CharSet", "utf8mb4");
migrationBuilder.AddColumn<string>(
name: "LastName",
table: "LeaveBeginnings",
type: "longtext",
nullable: true)
.Annotation("MySql:CharSet", "utf8mb4");
migrationBuilder.AddColumn<string>(
name: "Prefix",
table: "LeaveBeginnings",
type: "longtext",
nullable: true)
.Annotation("MySql:CharSet", "utf8mb4");
}
/// <inheritdoc />
protected override void Down(MigrationBuilder migrationBuilder)
{
migrationBuilder.DropColumn(
name: "FirstName",
table: "LeaveBeginnings");
migrationBuilder.DropColumn(
name: "LastName",
table: "LeaveBeginnings");
migrationBuilder.DropColumn(
name: "Prefix",
table: "LeaveBeginnings");
}
}
}