1
0
mirror of https://github.com/chylex/Minecraft-Phantom-Panel.git synced 2025-08-18 18:24:56 +02:00
Files
.config
.run
.workdir
Agent
Common
Controller
Phantom.Controller
Phantom.Controller.Database
Phantom.Controller.Database.Postgres
Migrations
20221007033307_Agents.Designer.cs
20221007033307_Agents.cs
20221007095438_Instances.Designer.cs
20221007095438_Instances.cs
20221008163849_Identity.Designer.cs
20221008163849_Identity.cs
20221010193220_InstanceJvmArguments.Designer.cs
20221010193220_InstanceJvmArguments.cs
20221016035515_AuditLog.Designer.cs
20221016035515_AuditLog.cs
20221018231328_AgentVersion.Designer.cs
20221018231328_AgentVersion.cs
20221021125232_Permissions.Designer.cs
20221021125232_Permissions.cs
20230213040522_AuditLogRename.Designer.cs
20230213040522_AuditLogRename.cs
20230215101444_EventLog.Designer.cs
20230215101444_EventLog.cs
20231008122637_ReplaceIdentity.Designer.cs
20231008122637_ReplaceIdentity.cs
20231008123315_ReplaceIdentity2.Designer.cs
20231008123315_ReplaceIdentity2.cs
20240407211636_UserAgentAccess.Designer.cs
20240407211636_UserAgentAccess.cs
ApplicationDbContextModelSnapshot.cs
ApplicationDbContextDesignFactory.cs
ApplicationDbContextFactory.cs
LazyDbContext.cs
Phantom.Controller.Database.Postgres.csproj
Phantom.Controller.Minecraft
Phantom.Controller.Services
Docker
Utils
Web
.dockerignore
.gitattributes
.gitignore
AddMigration.bat
AddMigration.sh
Directory.Build.props
Directory.Build.targets
Dockerfile
LICENSE
Packages.props
PhantomPanel.sln
README.md
global.json

45 lines
1.8 KiB
C#

using System;
using Microsoft.EntityFrameworkCore.Migrations;
#nullable disable
namespace Phantom.Controller.Database.Postgres.Migrations
{
/// <inheritdoc />
public partial class Instances : Migration
{
/// <inheritdoc />
protected override void Up(MigrationBuilder migrationBuilder)
{
migrationBuilder.CreateTable(
name: "Instances",
schema: "agents",
columns: table => new
{
InstanceGuid = table.Column<Guid>(type: "uuid", nullable: false),
AgentGuid = table.Column<Guid>(type: "uuid", nullable: false),
InstanceName = table.Column<string>(type: "text", nullable: false),
ServerPort = table.Column<int>(type: "integer", nullable: false),
RconPort = table.Column<int>(type: "integer", nullable: false),
MinecraftVersion = table.Column<string>(type: "text", nullable: false),
MinecraftServerKind = table.Column<string>(type: "text", nullable: false),
MemoryAllocation = table.Column<int>(type: "integer", nullable: false),
JavaRuntimeGuid = table.Column<Guid>(type: "uuid", nullable: false),
LaunchAutomatically = table.Column<bool>(type: "boolean", nullable: false)
},
constraints: table =>
{
table.PrimaryKey("PK_Instances", x => x.InstanceGuid);
});
}
/// <inheritdoc />
protected override void Down(MigrationBuilder migrationBuilder)
{
migrationBuilder.DropTable(
name: "Instances",
schema: "agents");
}
}
}