PIbd-23_Borschevskaya_A.A._.../FurnitureAssembly/FurnitureAssemblyDatabaseImplement/Migrations/20230323163820_FixMigration.cs

30 lines
798 B
C#

using Microsoft.EntityFrameworkCore.Migrations;
#nullable disable
namespace FurnitureAssemblyDatabaseImplement.Migrations
{
/// <inheritdoc />
public partial class FixMigration : Migration
{
/// <inheritdoc />
protected override void Up(MigrationBuilder migrationBuilder)
{
migrationBuilder.DropColumn(
name: "ProductId",
table: "FurnitureComponents");
}
/// <inheritdoc />
protected override void Down(MigrationBuilder migrationBuilder)
{
migrationBuilder.AddColumn<int>(
name: "ProductId",
table: "FurnitureComponents",
type: "int",
nullable: false,
defaultValue: 0);
}
}
}