using Microsoft.EntityFrameworkCore.Migrations;
#nullable disable
namespace NetinaShop.Repository.Migrations
{
///
public partial class EditOrderProductAddDiscount : Migration
{
///
protected override void Up(MigrationBuilder migrationBuilder)
{
migrationBuilder.AddColumn(
name: "HasDiscount",
schema: "public",
table: "OrderProducts",
type: "boolean",
nullable: false,
defaultValue: false);
migrationBuilder.AddColumn(
name: "ProductFeeWithDiscount",
schema: "public",
table: "OrderProducts",
type: "double precision",
nullable: false,
defaultValue: 0.0);
}
///
protected override void Down(MigrationBuilder migrationBuilder)
{
migrationBuilder.DropColumn(
name: "HasDiscount",
schema: "public",
table: "OrderProducts");
migrationBuilder.DropColumn(
name: "ProductFeeWithDiscount",
schema: "public",
table: "OrderProducts");
}
}
}