41 lines
1.1 KiB
C#
41 lines
1.1 KiB
C#
using Microsoft.EntityFrameworkCore.Migrations;
|
|
|
|
#nullable disable
|
|
|
|
namespace Webshop.Infrastructure.Migrations
|
|
{
|
|
/// <inheritdoc />
|
|
public partial class shippingmethodWeight : Migration
|
|
{
|
|
/// <inheritdoc />
|
|
protected override void Up(MigrationBuilder migrationBuilder)
|
|
{
|
|
migrationBuilder.AddColumn<decimal>(
|
|
name: "MaxWeight",
|
|
table: "ShippingMethods",
|
|
type: "numeric",
|
|
nullable: false,
|
|
defaultValue: 0m);
|
|
|
|
migrationBuilder.AddColumn<decimal>(
|
|
name: "MinWeight",
|
|
table: "ShippingMethods",
|
|
type: "numeric",
|
|
nullable: false,
|
|
defaultValue: 0m);
|
|
}
|
|
|
|
/// <inheritdoc />
|
|
protected override void Down(MigrationBuilder migrationBuilder)
|
|
{
|
|
migrationBuilder.DropColumn(
|
|
name: "MaxWeight",
|
|
table: "ShippingMethods");
|
|
|
|
migrationBuilder.DropColumn(
|
|
name: "MinWeight",
|
|
table: "ShippingMethods");
|
|
}
|
|
}
|
|
}
|