mirror of
https://github.com/chylex/Minecraft-Phantom-Panel.git
synced 2024-11-23 19:42:51 +01:00
44 lines
1.2 KiB
C#
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");
|
|
}
|
|
}
|
|
}
|