new migration
This commit is contained in:
1361
Webshop.Infrastructure/Migrations/20250930173440_shippingfix.Designer.cs
generated
Normal file
1361
Webshop.Infrastructure/Migrations/20250930173440_shippingfix.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 shippingfix : Migration
|
||||
{
|
||||
/// <inheritdoc />
|
||||
protected override void Up(MigrationBuilder migrationBuilder)
|
||||
{
|
||||
migrationBuilder.AddColumn<int>(
|
||||
name: "MaxDeliveryDays",
|
||||
table: "ShippingMethods",
|
||||
type: "integer",
|
||||
nullable: false,
|
||||
defaultValue: 0);
|
||||
|
||||
migrationBuilder.AddColumn<int>(
|
||||
name: "MinDeliveryDays",
|
||||
table: "ShippingMethods",
|
||||
type: "integer",
|
||||
nullable: false,
|
||||
defaultValue: 0);
|
||||
}
|
||||
|
||||
/// <inheritdoc />
|
||||
protected override void Down(MigrationBuilder migrationBuilder)
|
||||
{
|
||||
migrationBuilder.DropColumn(
|
||||
name: "MaxDeliveryDays",
|
||||
table: "ShippingMethods");
|
||||
|
||||
migrationBuilder.DropColumn(
|
||||
name: "MinDeliveryDays",
|
||||
table: "ShippingMethods");
|
||||
}
|
||||
}
|
||||
}
|
||||
@@ -847,6 +847,12 @@ namespace Webshop.Infrastructure.Migrations
|
||||
b.Property<bool>("IsActive")
|
||||
.HasColumnType("boolean");
|
||||
|
||||
b.Property<int>("MaxDeliveryDays")
|
||||
.HasColumnType("integer");
|
||||
|
||||
b.Property<int>("MinDeliveryDays")
|
||||
.HasColumnType("integer");
|
||||
|
||||
b.Property<decimal?>("MinimumOrderAmount")
|
||||
.HasPrecision(18, 2)
|
||||
.HasColumnType("numeric(18,2)");
|
||||
|
||||
Reference in New Issue
Block a user