hrms-api-backend/BMA.EHR.Infrastructure/Migrations/LeaveDb/20231129043220_Add KeycloakUserId to LeaveRequest.cs
2023-11-29 17:28:15 +07:00

31 lines
925 B
C#

using System;
using Microsoft.EntityFrameworkCore.Migrations;
#nullable disable
namespace BMA.EHR.Infrastructure.Migrations.LeaveDb
{
/// <inheritdoc />
public partial class AddKeycloakUserIdtoLeaveRequest : Migration
{
/// <inheritdoc />
protected override void Up(MigrationBuilder migrationBuilder)
{
migrationBuilder.AddColumn<Guid>(
name: "KeycloakUserId",
table: "LeaveRequests",
type: "char(36)",
nullable: false,
defaultValue: new Guid("00000000-0000-0000-0000-000000000000"),
collation: "ascii_general_ci");
}
/// <inheritdoc />
protected override void Down(MigrationBuilder migrationBuilder)
{
migrationBuilder.DropColumn(
name: "KeycloakUserId",
table: "LeaveRequests");
}
}
}