66 lines
2 KiB
C#
66 lines
2 KiB
C#
using Microsoft.EntityFrameworkCore.Migrations;
|
|
|
|
#nullable disable
|
|
|
|
namespace BMA.EHR.Infrastructure.Migrations.LeaveDb
|
|
{
|
|
/// <inheritdoc />
|
|
public partial class ChangeLeaveTotaltoDouble : Migration
|
|
{
|
|
/// <inheritdoc />
|
|
protected override void Up(MigrationBuilder migrationBuilder)
|
|
{
|
|
migrationBuilder.AlterColumn<double>(
|
|
name: "RestDayOldTotal",
|
|
table: "LeaveRequests",
|
|
type: "double",
|
|
nullable: false,
|
|
oldClrType: typeof(int),
|
|
oldType: "int");
|
|
|
|
migrationBuilder.AlterColumn<double>(
|
|
name: "RestDayCurrentTotal",
|
|
table: "LeaveRequests",
|
|
type: "double",
|
|
nullable: false,
|
|
oldClrType: typeof(int),
|
|
oldType: "int");
|
|
|
|
migrationBuilder.AlterColumn<double>(
|
|
name: "LeaveTotal",
|
|
table: "LeaveRequests",
|
|
type: "double",
|
|
nullable: false,
|
|
oldClrType: typeof(int),
|
|
oldType: "int");
|
|
}
|
|
|
|
/// <inheritdoc />
|
|
protected override void Down(MigrationBuilder migrationBuilder)
|
|
{
|
|
migrationBuilder.AlterColumn<int>(
|
|
name: "RestDayOldTotal",
|
|
table: "LeaveRequests",
|
|
type: "int",
|
|
nullable: false,
|
|
oldClrType: typeof(double),
|
|
oldType: "double");
|
|
|
|
migrationBuilder.AlterColumn<int>(
|
|
name: "RestDayCurrentTotal",
|
|
table: "LeaveRequests",
|
|
type: "int",
|
|
nullable: false,
|
|
oldClrType: typeof(double),
|
|
oldType: "double");
|
|
|
|
migrationBuilder.AlterColumn<int>(
|
|
name: "LeaveTotal",
|
|
table: "LeaveRequests",
|
|
type: "int",
|
|
nullable: false,
|
|
oldClrType: typeof(double),
|
|
oldType: "double");
|
|
}
|
|
}
|
|
}
|