82 lines
2.5 KiB
C#
82 lines
2.5 KiB
C#
using Microsoft.EntityFrameworkCore.Migrations;
|
|
|
|
#nullable disable
|
|
|
|
namespace BMA.EHR.Recruit.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");
|
|
}
|
|
}
|
|
}
|