using Microsoft.EntityFrameworkCore.Migrations; #nullable disable namespace foodmarket.Infrastructure.Persistence.Migrations { /// public partial class Phase1e_WidenArticleBarcode : Migration { /// protected override void Up(MigrationBuilder migrationBuilder) { migrationBuilder.AlterColumn( name: "Article", schema: "public", table: "products", type: "character varying(500)", maxLength: 500, nullable: true, oldClrType: typeof(string), oldType: "character varying(100)", oldMaxLength: 100, oldNullable: true); migrationBuilder.AlterColumn( name: "Code", schema: "public", table: "product_barcodes", type: "character varying(500)", maxLength: 500, nullable: false, oldClrType: typeof(string), oldType: "character varying(100)", oldMaxLength: 100); } /// protected override void Down(MigrationBuilder migrationBuilder) { migrationBuilder.AlterColumn( name: "Article", schema: "public", table: "products", type: "character varying(100)", maxLength: 100, nullable: true, oldClrType: typeof(string), oldType: "character varying(500)", oldMaxLength: 500, oldNullable: true); migrationBuilder.AlterColumn( name: "Code", schema: "public", table: "product_barcodes", type: "character varying(100)", maxLength: 100, nullable: false, oldClrType: typeof(string), oldType: "character varying(500)", oldMaxLength: 500); } } }