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