new migration

This commit is contained in:
Tizian.Breuch
2025-09-30 19:34:56 +02:00
parent fab0e517d7
commit e828c3a34a
3 changed files with 1407 additions and 0 deletions

View File

@@ -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");
}
}
}