using Microsoft.EntityFrameworkCore.Migrations; #nullable disable namespace LY.MicroService.WebhooksManagement.Migrations { public partial class ResetFieldSecretToNotRequired : Migration { protected override void Up(MigrationBuilder migrationBuilder) { migrationBuilder.AlterColumn( name: "Secret", table: "AbpWebhooksSubscriptions", type: "varchar(128)", maxLength: 128, nullable: true, oldClrType: typeof(string), oldType: "varchar(128)", oldMaxLength: 128) .Annotation("MySql:CharSet", "utf8mb4") .OldAnnotation("MySql:CharSet", "utf8mb4"); } protected override void Down(MigrationBuilder migrationBuilder) { migrationBuilder.UpdateData( table: "AbpWebhooksSubscriptions", keyColumn: "Secret", keyValue: null, column: "Secret", value: ""); migrationBuilder.AlterColumn( name: "Secret", table: "AbpWebhooksSubscriptions", type: "varchar(128)", maxLength: 128, nullable: false, oldClrType: typeof(string), oldType: "varchar(128)", oldMaxLength: 128, oldNullable: true) .Annotation("MySql:CharSet", "utf8mb4") .OldAnnotation("MySql:CharSet", "utf8mb4"); } } }