31 lines
908 B
C#
31 lines
908 B
C#
using System;
|
|
using Microsoft.EntityFrameworkCore.Migrations;
|
|
|
|
#nullable disable
|
|
|
|
namespace BMA.EHR.Infrastructure.Migrations
|
|
{
|
|
/// <inheritdoc />
|
|
public partial class updatetablecommandaddRefDisciplineId : Migration
|
|
{
|
|
/// <inheritdoc />
|
|
protected override void Up(MigrationBuilder migrationBuilder)
|
|
{
|
|
migrationBuilder.AddColumn<Guid>(
|
|
name: "SalaryPeriodId",
|
|
table: "Commands",
|
|
type: "char(36)",
|
|
nullable: true,
|
|
comment: "Id เรื่องเงินเดือน",
|
|
collation: "ascii_general_ci");
|
|
}
|
|
|
|
/// <inheritdoc />
|
|
protected override void Down(MigrationBuilder migrationBuilder)
|
|
{
|
|
migrationBuilder.DropColumn(
|
|
name: "SalaryPeriodId",
|
|
table: "Commands");
|
|
}
|
|
}
|
|
}
|