LANCommander/LANCommander.Server.Data.SQLite/Migrations/20230811190752_AddServerUseShellExecuteAndAutostartDelay.cs

41 lines
1.1 KiB
C#

using System;
using Microsoft.EntityFrameworkCore.Migrations;
#nullable disable
namespace LANCommander.Migrations
{
/// <inheritdoc />
public partial class AddServerUseShellExecuteAndAutostartDelay : Migration
{
/// <inheritdoc />
protected override void Up(MigrationBuilder migrationBuilder)
{
migrationBuilder.AddColumn<int>(
name: "AutostartDelay",
table: "Servers",
type: "INTEGER",
nullable: false,
defaultValue: 0);
migrationBuilder.AddColumn<bool>(
name: "UseShellExecute",
table: "Servers",
type: "INTEGER",
nullable: false,
defaultValue: false);
}
/// <inheritdoc />
protected override void Down(MigrationBuilder migrationBuilder)
{
migrationBuilder.DropColumn(
name: "AutostartDelay",
table: "Servers");
migrationBuilder.DropColumn(
name: "UseShellExecute",
table: "Servers");
}
}
}