using Microsoft.EntityFrameworkCore.Migrations; #nullable disable namespace WebVentaCoche.Migrations { /// public partial class DescriptionsProducts : Migration { /// protected override void Up(MigrationBuilder migrationBuilder) { migrationBuilder.DropColumn( name: "Description", table: "Products"); migrationBuilder.AlterColumn( name: "ImagePath", table: "Products", type: "nvarchar(max)", nullable: true, oldClrType: typeof(string), oldType: "nvarchar(max)"); migrationBuilder.AddColumn( name: "LongDescription", table: "Products", type: "nvarchar(max)", nullable: true); migrationBuilder.AddColumn( name: "ShortDescription", table: "Products", type: "nvarchar(max)", nullable: true); } /// protected override void Down(MigrationBuilder migrationBuilder) { migrationBuilder.DropColumn( name: "LongDescription", table: "Products"); migrationBuilder.DropColumn( name: "ShortDescription", table: "Products"); migrationBuilder.AlterColumn( name: "ImagePath", table: "Products", type: "nvarchar(max)", nullable: false, defaultValue: "", oldClrType: typeof(string), oldType: "nvarchar(max)", oldNullable: true); migrationBuilder.AddColumn( name: "Description", table: "Products", type: "nvarchar(max)", nullable: false, defaultValue: ""); } } }