no message

This commit is contained in:
Kittapath 2024-05-21 14:31:29 +07:00
parent 2a17eff17d
commit fb6a83b36a
11 changed files with 17862 additions and 70 deletions

View file

@ -0,0 +1,52 @@
using Microsoft.EntityFrameworkCore.Migrations;
#nullable disable
namespace BMA.EHR.Infrastructure.Migrations
{
/// <inheritdoc />
public partial class updatetableNotificationaddKeycloakUserId : Migration
{
/// <inheritdoc />
protected override void Up(MigrationBuilder migrationBuilder)
{
migrationBuilder.AddColumn<string>(
name: "profileId",
table: "RetirementDeceasedNotis",
type: "longtext",
nullable: true,
comment: "profile Id")
.Annotation("MySql:CharSet", "utf8mb4");
migrationBuilder.AddColumn<string>(
name: "KeycloakUserId",
table: "Notifications",
type: "longtext",
nullable: false)
.Annotation("MySql:CharSet", "utf8mb4");
migrationBuilder.AddColumn<string>(
name: "KeycloakUserId",
table: "Inboxes",
type: "longtext",
nullable: false)
.Annotation("MySql:CharSet", "utf8mb4");
}
/// <inheritdoc />
protected override void Down(MigrationBuilder migrationBuilder)
{
migrationBuilder.DropColumn(
name: "profileId",
table: "RetirementDeceasedNotis");
migrationBuilder.DropColumn(
name: "KeycloakUserId",
table: "Notifications");
migrationBuilder.DropColumn(
name: "KeycloakUserId",
table: "Inboxes");
}
}
}

View file

@ -9250,6 +9250,10 @@ namespace BMA.EHR.Infrastructure.Migrations
.HasColumnType("tinyint(1)")
.HasComment("เปิดอ่านแล้วหรือยัง");
b.Property<string>("KeycloakUserId")
.IsRequired()
.HasColumnType("longtext");
b.Property<string>("LastUpdateFullName")
.IsRequired()
.HasMaxLength(200)
@ -9438,6 +9442,10 @@ namespace BMA.EHR.Infrastructure.Migrations
.HasColumnType("tinyint(1)")
.HasComment("เปิดอ่านแล้วหรือยัง");
b.Property<string>("KeycloakUserId")
.IsRequired()
.HasColumnType("longtext");
b.Property<string>("LastUpdateFullName")
.IsRequired()
.HasMaxLength(200)
@ -14158,6 +14166,10 @@ namespace BMA.EHR.Infrastructure.Migrations
b.Property<Guid>("RetirementDeceasedId")
.HasColumnType("char(36)");
b.Property<string>("profileId")
.HasColumnType("longtext")
.HasComment("profile Id");
b.HasKey("Id");
b.HasIndex("DocumentId");