41 lines
1.2 KiB
C#
41 lines
1.2 KiB
C#
|
|
using Microsoft.EntityFrameworkCore.Migrations;
|
|||
|
|
|
|||
|
|
#nullable disable
|
|||
|
|
|
|||
|
|
namespace BMA.EHR.Infrastructure.Migrations.LeaveDb
|
|||
|
|
{
|
|||
|
|
/// <inheritdoc />
|
|||
|
|
public partial class AddApproverField : Migration
|
|||
|
|
{
|
|||
|
|
/// <inheritdoc />
|
|||
|
|
protected override void Up(MigrationBuilder migrationBuilder)
|
|||
|
|
{
|
|||
|
|
migrationBuilder.AddColumn<bool>(
|
|||
|
|
name: "IsAct",
|
|||
|
|
table: "LeaveRequestApprovers",
|
|||
|
|
type: "tinyint(1)",
|
|||
|
|
nullable: false,
|
|||
|
|
defaultValue: false);
|
|||
|
|
|
|||
|
|
migrationBuilder.AddColumn<string>(
|
|||
|
|
name: "KeyId",
|
|||
|
|
table: "LeaveRequestApprovers",
|
|||
|
|
type: "longtext",
|
|||
|
|
nullable: false)
|
|||
|
|
.Annotation("MySql:CharSet", "utf8mb4");
|
|||
|
|
}
|
|||
|
|
|
|||
|
|
/// <inheritdoc />
|
|||
|
|
protected override void Down(MigrationBuilder migrationBuilder)
|
|||
|
|
{
|
|||
|
|
migrationBuilder.DropColumn(
|
|||
|
|
name: "IsAct",
|
|||
|
|
table: "LeaveRequestApprovers");
|
|||
|
|
|
|||
|
|
migrationBuilder.DropColumn(
|
|||
|
|
name: "KeyId",
|
|||
|
|
table: "LeaveRequestApprovers");
|
|||
|
|
}
|
|||
|
|
}
|
|||
|
|
}
|