1
0
mirror of https://github.com/chylex/Minecraft-Phantom-Panel.git synced 2025-08-16 12:31:43 +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

43 lines
1.4 KiB
C#

using System;
using Microsoft.EntityFrameworkCore.Migrations;
#nullable disable
namespace Phantom.Controller.Database.Postgres.Migrations
{
/// <inheritdoc />
public partial class Agents : Migration
{
/// <inheritdoc />
protected override void Up(MigrationBuilder migrationBuilder)
{
migrationBuilder.EnsureSchema(
name: "agents");
migrationBuilder.CreateTable(
name: "Agents",
schema: "agents",
columns: table => new
{
AgentGuid = table.Column<Guid>(type: "uuid", nullable: false),
Name = table.Column<string>(type: "text", nullable: false),
Version = table.Column<int>(type: "integer", nullable: false),
MaxInstances = table.Column<int>(type: "integer", nullable: false),
MaxMemory = table.Column<int>(type: "integer", nullable: false)
},
constraints: table =>
{
table.PrimaryKey("PK_Agents", x => x.AgentGuid);
});
}
/// <inheritdoc />
protected override void Down(MigrationBuilder migrationBuilder)
{
migrationBuilder.DropTable(
name: "Agents",
schema: "agents");
}
}
}