using Microsoft.EntityFrameworkCore.Migrations; #nullable disable namespace PyroFetes.Migrations { /// public partial class FixZipCode : Migration { /// protected override void Up(MigrationBuilder migrationBuilder) { migrationBuilder.AlterColumn( name: "ZipCode", table: "Warehouses", type: "nvarchar(max)", nullable: false, oldClrType: typeof(int), oldType: "int"); migrationBuilder.AlterColumn( name: "ZipCode", table: "Suppliers", type: "nvarchar(max)", nullable: false, oldClrType: typeof(string), oldType: "nvarchar(5)", oldMaxLength: 5); } /// protected override void Down(MigrationBuilder migrationBuilder) { migrationBuilder.AlterColumn( name: "ZipCode", table: "Warehouses", type: "int", nullable: false, oldClrType: typeof(string), oldType: "nvarchar(max)"); migrationBuilder.AlterColumn( name: "ZipCode", table: "Suppliers", type: "nvarchar(5)", maxLength: 5, nullable: false, oldClrType: typeof(string), oldType: "nvarchar(max)"); } } }