LANCommander/LANCommander.Server.Data.SQLite/Migrations/20250325055440_AddDockerContainerFields.cs

52 lines
1.4 KiB
C#

using System;
using Microsoft.EntityFrameworkCore.Migrations;
#nullable disable
namespace LANCommander.Migrations
{
/// <inheritdoc />
public partial class AddDockerContainerFields : Migration
{
/// <inheritdoc />
protected override void Up(MigrationBuilder migrationBuilder)
{
migrationBuilder.AddColumn<string>(
name: "ContainerId",
table: "Servers",
type: "TEXT",
maxLength: 64,
nullable: false,
defaultValue: "");
migrationBuilder.AddColumn<Guid>(
name: "DockerHostId",
table: "Servers",
type: "TEXT",
nullable: true);
migrationBuilder.AddColumn<int>(
name: "Engine",
table: "Servers",
type: "INTEGER",
nullable: false,
defaultValue: 0);
}
/// <inheritdoc />
protected override void Down(MigrationBuilder migrationBuilder)
{
migrationBuilder.DropColumn(
name: "ContainerId",
table: "Servers");
migrationBuilder.DropColumn(
name: "DockerHostId",
table: "Servers");
migrationBuilder.DropColumn(
name: "Engine",
table: "Servers");
}
}
}