add migrations

This commit is contained in:
Suphonchai Phoonsawat 2025-02-10 12:54:05 +07:00
parent 5c0dab5a1c
commit d664dd42e9
36 changed files with 27628 additions and 25414 deletions

View file

@ -0,0 +1,82 @@
using Microsoft.EntityFrameworkCore.Migrations;
#nullable disable
namespace BMA.EHR.Recruit.Service.Migrations
{
/// <inheritdoc />
public partial class ChangeSumScoretodouble : Migration
{
/// <inheritdoc />
protected override void Up(MigrationBuilder migrationBuilder)
{
migrationBuilder.AlterColumn<double>(
name: "SumC",
table: "RecruitScores",
type: "double",
nullable: false,
oldClrType: typeof(int),
oldType: "int");
migrationBuilder.AlterColumn<double>(
name: "SumB",
table: "RecruitScores",
type: "double",
nullable: false,
oldClrType: typeof(int),
oldType: "int");
migrationBuilder.AlterColumn<double>(
name: "SumAB",
table: "RecruitScores",
type: "double",
nullable: false,
oldClrType: typeof(int),
oldType: "int");
migrationBuilder.AlterColumn<double>(
name: "SumA",
table: "RecruitScores",
type: "double",
nullable: false,
oldClrType: typeof(int),
oldType: "int");
}
/// <inheritdoc />
protected override void Down(MigrationBuilder migrationBuilder)
{
migrationBuilder.AlterColumn<int>(
name: "SumC",
table: "RecruitScores",
type: "int",
nullable: false,
oldClrType: typeof(double),
oldType: "double");
migrationBuilder.AlterColumn<int>(
name: "SumB",
table: "RecruitScores",
type: "int",
nullable: false,
oldClrType: typeof(double),
oldType: "double");
migrationBuilder.AlterColumn<int>(
name: "SumAB",
table: "RecruitScores",
type: "int",
nullable: false,
oldClrType: typeof(double),
oldType: "double");
migrationBuilder.AlterColumn<int>(
name: "SumA",
table: "RecruitScores",
type: "int",
nullable: false,
oldClrType: typeof(double),
oldType: "double");
}
}
}