LANCommander/LANCommander.Server.Data.SQLite/Migrations/20240904002809_AddGameKeyAllocationMethod.cs

30 lines
786 B
C#
Raw Permalink Normal View History

2024-09-03 19:57:39 -05:00
using Microsoft.EntityFrameworkCore.Migrations;
#nullable disable
namespace LANCommander.Migrations
{
/// <inheritdoc />
public partial class AddGameKeyAllocationMethod : Migration
{
/// <inheritdoc />
protected override void Up(MigrationBuilder migrationBuilder)
{
migrationBuilder.AddColumn<int>(
name: "KeyAllocationMethod",
table: "Games",
type: "INTEGER",
nullable: false,
defaultValue: 0);
}
/// <inheritdoc />
protected override void Down(MigrationBuilder migrationBuilder)
{
migrationBuilder.DropColumn(
name: "KeyAllocationMethod",
table: "Games");
}
}
}