using Microsoft.EntityFrameworkCore.Migrations; #nullable disable namespace Bit.MySqlMigrations.Migrations; /// public partial class MakeBlobNonNull : Migration { /// protected override void Up(MigrationBuilder migrationBuilder) { migrationBuilder.AlterColumn( name: "Value", table: "Cache", type: "longblob", nullable: false, defaultValue: new byte[0], oldClrType: typeof(byte[]), oldType: "longblob", oldNullable: true); } /// protected override void Down(MigrationBuilder migrationBuilder) { migrationBuilder.AlterColumn( name: "Value", table: "Cache", type: "longblob", nullable: true, oldClrType: typeof(byte[]), oldType: "longblob"); } }