Files
Verspakketten-API/Lutra/Lutra.Infrastructure/Migrations/20260418173428_AddAantalPersonenCheckConstraint.cs

28 lines
814 B
C#

using Microsoft.EntityFrameworkCore.Migrations;
#nullable disable
namespace Lutra.Infrastructure.Sql.Migrations
{
/// <inheritdoc />
public partial class AddAantalPersonenCheckConstraint : Migration
{
/// <inheritdoc />
protected override void Up(MigrationBuilder migrationBuilder)
{
migrationBuilder.AddCheckConstraint(
name: "CK_Verspaketten_AantalPersonen",
table: "Verspaketten",
sql: "\"AantalPersonen\" BETWEEN 1 AND 10");
}
/// <inheritdoc />
protected override void Down(MigrationBuilder migrationBuilder)
{
migrationBuilder.DropCheckConstraint(
name: "CK_Verspaketten_AantalPersonen",
table: "Verspaketten");
}
}
}