2025-02-10 12:54:05 +07:00
|
|
|
|
using Microsoft.EntityFrameworkCore.Migrations;
|
|
|
|
|
|
|
|
|
|
|
|
#nullable disable
|
|
|
|
|
|
|
2026-05-12 16:32:46 +07:00
|
|
|
|
namespace BMA.EHR.Recruit.Migrations
|
2025-02-10 12:54:05 +07:00
|
|
|
|
{
|
|
|
|
|
|
/// <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");
|
|
|
|
|
|
}
|
|
|
|
|
|
}
|
|
|
|
|
|
}
|