40 lines
1.5 KiB
C#
40 lines
1.5 KiB
C#
using Microsoft.EntityFrameworkCore.Migrations;
|
|
|
|
#nullable disable
|
|
|
|
namespace BMA.EHR.Infrastructure.Migrations
|
|
{
|
|
/// <inheritdoc />
|
|
public partial class update_table_PlacementProfile_and_Candidate : Migration
|
|
{
|
|
/// <inheritdoc />
|
|
protected override void Up(MigrationBuilder migrationBuilder)
|
|
{
|
|
migrationBuilder.AlterColumn<double>(
|
|
name: "OccupationSalary",
|
|
table: "PlacementProfiles",
|
|
type: "double",
|
|
nullable: true,
|
|
comment: "ตำแหน่งปัจจุบัน เงินเดือน",
|
|
oldClrType: typeof(int),
|
|
oldType: "int",
|
|
oldNullable: true,
|
|
oldComment: "ตำแหน่งปัจจุบัน เงินเดือน");
|
|
}
|
|
|
|
/// <inheritdoc />
|
|
protected override void Down(MigrationBuilder migrationBuilder)
|
|
{
|
|
migrationBuilder.AlterColumn<int>(
|
|
name: "OccupationSalary",
|
|
table: "PlacementProfiles",
|
|
type: "int",
|
|
nullable: true,
|
|
comment: "ตำแหน่งปัจจุบัน เงินเดือน",
|
|
oldClrType: typeof(double),
|
|
oldType: "double",
|
|
oldNullable: true,
|
|
oldComment: "ตำแหน่งปัจจุบัน เงินเดือน");
|
|
}
|
|
}
|
|
}
|