using Microsoft.EntityFrameworkCore.Migrations; namespace Marechai.Database.Migrations { public partial class FixCurrenciesNullability : Migration { protected override void Up(MigrationBuilder migrationBuilder) { migrationBuilder.AlterColumn("SourceCode", "CurrenciesPegging", "varchar(3) CHARACTER SET utf8mb4", nullable: false, defaultValue: "", oldClrType: typeof(string), oldType: "varchar(3) CHARACTER SET utf8mb4", oldNullable: true); migrationBuilder.AlterColumn("DestinationCode", "CurrenciesPegging", "varchar(3) CHARACTER SET utf8mb4", nullable: false, defaultValue: "", oldClrType: typeof(string), oldType: "varchar(3) CHARACTER SET utf8mb4", oldNullable: true); migrationBuilder.AlterColumn("CurrencyCode", "CurrenciesInflation", "varchar(3) CHARACTER SET utf8mb4", nullable: false, defaultValue: "", oldClrType: typeof(string), oldType: "varchar(3) CHARACTER SET utf8mb4", oldNullable: true); } protected override void Down(MigrationBuilder migrationBuilder) { migrationBuilder.AlterColumn("SourceCode", "CurrenciesPegging", "varchar(3) CHARACTER SET utf8mb4", nullable: true, oldClrType: typeof(string), oldType: "varchar(3) CHARACTER SET utf8mb4"); migrationBuilder.AlterColumn("DestinationCode", "CurrenciesPegging", "varchar(3) CHARACTER SET utf8mb4", nullable: true, oldClrType: typeof(string), oldType: "varchar(3) CHARACTER SET utf8mb4"); migrationBuilder.AlterColumn("CurrencyCode", "CurrenciesInflation", "varchar(3) CHARACTER SET utf8mb4", nullable: true, oldClrType: typeof(string), oldType: "varchar(3) CHARACTER SET utf8mb4"); } } }