1
0
mirror of https://github.com/chylex/Minecraft-Phantom-Panel.git synced 2024-11-24 22:42:53 +01:00
Minecraft-Phantom-Panel/Server/Phantom.Server.Database.Postgres/Migrations/20221018231328_AgentVersion.cs

44 lines
1.2 KiB
C#

using Microsoft.EntityFrameworkCore.Migrations;
#nullable disable
namespace Phantom.Server.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");
}
}
}