Add player count fields with validation and labeled UX
This commit is contained in:
38
Data/Migrations/20260129004926_SyncPlayers.cs
Normal file
38
Data/Migrations/20260129004926_SyncPlayers.cs
Normal file
@@ -0,0 +1,38 @@
|
||||
using Microsoft.EntityFrameworkCore.Migrations;
|
||||
|
||||
#nullable disable
|
||||
|
||||
namespace GameList.Data.Migrations
|
||||
{
|
||||
/// <inheritdoc />
|
||||
public partial class SyncPlayers : Migration
|
||||
{
|
||||
/// <inheritdoc />
|
||||
protected override void Up(MigrationBuilder migrationBuilder)
|
||||
{
|
||||
migrationBuilder.AddColumn<int>(
|
||||
name: "MaxPlayers",
|
||||
table: "Suggestions",
|
||||
type: "INTEGER",
|
||||
nullable: true);
|
||||
|
||||
migrationBuilder.AddColumn<int>(
|
||||
name: "MinPlayers",
|
||||
table: "Suggestions",
|
||||
type: "INTEGER",
|
||||
nullable: true);
|
||||
}
|
||||
|
||||
/// <inheritdoc />
|
||||
protected override void Down(MigrationBuilder migrationBuilder)
|
||||
{
|
||||
migrationBuilder.DropColumn(
|
||||
name: "MaxPlayers",
|
||||
table: "Suggestions");
|
||||
|
||||
migrationBuilder.DropColumn(
|
||||
name: "MinPlayers",
|
||||
table: "Suggestions");
|
||||
}
|
||||
}
|
||||
}
|
||||
Reference in New Issue
Block a user