Files
ShopSolution-backend/Webshop.Infrastructure/Migrations/20250930173440_shippingfix.cs
Tizian.Breuch e828c3a34a new migration
2025-09-30 19:34:56 +02:00

41 lines
1.1 KiB
C#

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