32 lines
989 B
C#
32 lines
989 B
C#
using Microsoft.EntityFrameworkCore.Migrations;
|
|
|
|
#nullable disable
|
|
|
|
namespace BMA.EHR.Infrastructure.Migrations
|
|
{
|
|
/// <inheritdoc />
|
|
public partial class AddReceiverEmailtoMessageQueue : Migration
|
|
{
|
|
/// <inheritdoc />
|
|
protected override void Up(MigrationBuilder migrationBuilder)
|
|
{
|
|
migrationBuilder.AddColumn<string>(
|
|
name: "ReceiverEmailAddress",
|
|
table: "MessageQueues",
|
|
type: "varchar(500)",
|
|
maxLength: 500,
|
|
nullable: false,
|
|
defaultValue: "",
|
|
comment: "อีเมล์ของผู้รับ")
|
|
.Annotation("MySql:CharSet", "utf8mb4");
|
|
}
|
|
|
|
/// <inheritdoc />
|
|
protected override void Down(MigrationBuilder migrationBuilder)
|
|
{
|
|
migrationBuilder.DropColumn(
|
|
name: "ReceiverEmailAddress",
|
|
table: "MessageQueues");
|
|
}
|
|
}
|
|
}
|