LANCommander/LANCommander.Server.Data.MySQL/Migrations/20260308000001_AddRemoteServerEngine.cs

41 lines
1.1 KiB
C#

using System;
using Microsoft.EntityFrameworkCore.Migrations;
#nullable disable
namespace LANCommander.Server.Data.MySQL.Migrations
{
/// <inheritdoc />
public partial class AddRemoteServerEngine : Migration
{
/// <inheritdoc />
protected override void Up(MigrationBuilder migrationBuilder)
{
migrationBuilder.AddColumn<Guid>(
name: "RemoteHostId",
table: "Servers",
type: "char(36)",
nullable: true,
collation: "ascii_general_ci");
migrationBuilder.AddColumn<Guid>(
name: "RemoteServerId",
table: "Servers",
type: "char(36)",
nullable: true,
collation: "ascii_general_ci");
}
/// <inheritdoc />
protected override void Down(MigrationBuilder migrationBuilder)
{
migrationBuilder.DropColumn(
name: "RemoteHostId",
table: "Servers");
migrationBuilder.DropColumn(
name: "RemoteServerId",
table: "Servers");
}
}
}