shipping method weight
This commit is contained in:
1372
Webshop.Infrastructure/Migrations/20251126085553_shippingmethodWeight.Designer.cs
generated
Normal file
1372
Webshop.Infrastructure/Migrations/20251126085553_shippingmethodWeight.Designer.cs
generated
Normal file
File diff suppressed because it is too large
Load Diff
@@ -0,0 +1,40 @@
|
||||
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");
|
||||
}
|
||||
}
|
||||
}
|
||||
@@ -855,9 +855,15 @@ namespace Webshop.Infrastructure.Migrations
|
||||
b.Property<int>("MaxDeliveryDays")
|
||||
.HasColumnType("integer");
|
||||
|
||||
b.Property<decimal>("MaxWeight")
|
||||
.HasColumnType("numeric");
|
||||
|
||||
b.Property<int>("MinDeliveryDays")
|
||||
.HasColumnType("integer");
|
||||
|
||||
b.Property<decimal>("MinWeight")
|
||||
.HasColumnType("numeric");
|
||||
|
||||
b.Property<decimal?>("MinimumOrderAmount")
|
||||
.HasPrecision(18, 2)
|
||||
.HasColumnType("numeric(18,2)");
|
||||
|
||||
Reference in New Issue
Block a user