using Microsoft.EntityFrameworkCore.Migrations; #nullable disable namespace PyroFetes.Migrations { /// public partial class FixingDatabase : Migration { /// protected override void Up(MigrationBuilder migrationBuilder) { migrationBuilder.DropColumn( name: "References", table: "Products"); migrationBuilder.DropColumn( name: "SellingPrice", table: "Products"); migrationBuilder.AddColumn( name: "Reference", table: "Products", type: "nvarchar(20)", maxLength: 20, nullable: false, defaultValue: ""); } /// protected override void Down(MigrationBuilder migrationBuilder) { migrationBuilder.DropColumn( name: "Reference", table: "Products"); migrationBuilder.AddColumn( name: "References", table: "Products", type: "int", nullable: false, defaultValue: 0); migrationBuilder.AddColumn( name: "SellingPrice", table: "Products", type: "decimal(18,2)", nullable: false, defaultValue: 0m); } } }