using Microsoft.EntityFrameworkCore.Migrations; namespace PCC.Data.Migrations { public partial class Secondary : Migration { protected override void Up(MigrationBuilder migrationBuilder) { migrationBuilder.AddColumn( name: "ImageUrl", table: "RAMs", nullable: true); migrationBuilder.AddColumn( name: "ImageUrl", table: "Processors", nullable: true); migrationBuilder.AddColumn( name: "ImageUrl", table: "PowerSupplies", nullable: true); migrationBuilder.AddColumn( name: "ImageUrl", table: "Motherboards", nullable: true); migrationBuilder.AddColumn( name: "ImageUrl", table: "HardDisks", nullable: true); migrationBuilder.AddColumn( name: "ImageUrl", table: "GPUs", nullable: true); } protected override void Down(MigrationBuilder migrationBuilder) { migrationBuilder.DropColumn( name: "ImageUrl", table: "RAMs"); migrationBuilder.DropColumn( name: "ImageUrl", table: "Processors"); migrationBuilder.DropColumn( name: "ImageUrl", table: "PowerSupplies"); migrationBuilder.DropColumn( name: "ImageUrl", table: "Motherboards"); migrationBuilder.DropColumn( name: "ImageUrl", table: "HardDisks"); migrationBuilder.DropColumn( name: "ImageUrl", table: "GPUs"); } } }