add field
This commit is contained in:
parent
c704556891
commit
e45cf014b1
11 changed files with 51436 additions and 0 deletions
|
|
@ -0,0 +1,51 @@
|
|||
using Microsoft.EntityFrameworkCore.Migrations;
|
||||
|
||||
#nullable disable
|
||||
|
||||
namespace BMA.EHR.Infrastructure.Migrations
|
||||
{
|
||||
/// <inheritdoc />
|
||||
public partial class AddFieldsIsDatetoProfileHonorTable : Migration
|
||||
{
|
||||
/// <inheritdoc />
|
||||
protected override void Up(MigrationBuilder migrationBuilder)
|
||||
{
|
||||
migrationBuilder.AlterColumn<bool>(
|
||||
name: "IsDate",
|
||||
table: "ProfileTrainings",
|
||||
type: "tinyint(1)",
|
||||
nullable: true,
|
||||
comment: "ประเภทช่วงเวลา",
|
||||
oldClrType: typeof(bool),
|
||||
oldType: "tinyint(1)",
|
||||
oldNullable: true,
|
||||
oldComment: "ประเภทช่วงเวลาการศึกษา");
|
||||
|
||||
migrationBuilder.AddColumn<bool>(
|
||||
name: "IsDate",
|
||||
table: "ProfileHonors",
|
||||
type: "tinyint(1)",
|
||||
nullable: true,
|
||||
comment: "ประเภทช่วงเวลา");
|
||||
}
|
||||
|
||||
/// <inheritdoc />
|
||||
protected override void Down(MigrationBuilder migrationBuilder)
|
||||
{
|
||||
migrationBuilder.DropColumn(
|
||||
name: "IsDate",
|
||||
table: "ProfileHonors");
|
||||
|
||||
migrationBuilder.AlterColumn<bool>(
|
||||
name: "IsDate",
|
||||
table: "ProfileTrainings",
|
||||
type: "tinyint(1)",
|
||||
nullable: true,
|
||||
comment: "ประเภทช่วงเวลาการศึกษา",
|
||||
oldClrType: typeof(bool),
|
||||
oldType: "tinyint(1)",
|
||||
oldNullable: true,
|
||||
oldComment: "ประเภทช่วงเวลา");
|
||||
}
|
||||
}
|
||||
}
|
||||
Loading…
Add table
Add a link
Reference in a new issue