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

44 lines
1.2 KiB
C#

using Microsoft.EntityFrameworkCore.Migrations;
#nullable disable
namespace Phantom.Controller.Database.Postgres.Migrations
{
/// <inheritdoc />
public partial class AgentVersion : Migration
{
/// <inheritdoc />
protected override void Up(MigrationBuilder migrationBuilder)
{
migrationBuilder.RenameColumn(
name: "Version",
schema: "agents",
table: "Agents",
newName: "ProtocolVersion");
migrationBuilder.AddColumn<string>(
name: "BuildVersion",
schema: "agents",
table: "Agents",
type: "text",
nullable: false,
defaultValue: "");
}
/// <inheritdoc />
protected override void Down(MigrationBuilder migrationBuilder)
{
migrationBuilder.DropColumn(
name: "BuildVersion",
schema: "agents",
table: "Agents");
migrationBuilder.RenameColumn(
name: "ProtocolVersion",
schema: "agents",
table: "Agents",
newName: "Version");
}
}
}