using Microsoft.EntityFrameworkCore.Migrations; namespace Gateway.POS.Migrations { public partial class setMembershipSubAccountIdentityIdentitytorequired : Migration { protected override void Up(MigrationBuilder migrationBuilder) { migrationBuilder.Sql("DELETE from MembershipSubAccountIdentities where Identity is Null"); migrationBuilder.AlterColumn( name: "Identity", table: "MembershipSubAccountIdentities", type: "TEXT", nullable: false, defaultValue: "", oldClrType: typeof(string), oldType: "TEXT", oldNullable: true); } protected override void Down(MigrationBuilder migrationBuilder) { migrationBuilder.AlterColumn( name: "Identity", table: "MembershipSubAccountIdentities", type: "TEXT", nullable: true, oldClrType: typeof(string), oldType: "TEXT"); } } }