mirror of
https://github.com/CyberL1/Minecraft-Realms-Emulator.git
synced 2025-03-30 20:48:36 -04:00
23 lines
717 B
C#
23 lines
717 B
C#
using System.Text.Json;
|
|
using Microsoft.EntityFrameworkCore.Migrations;
|
|
|
|
#nullable disable
|
|
|
|
namespace Minecraft_Realms_Emulator.Migrations
|
|
{
|
|
/// <inheritdoc />
|
|
public partial class Worlds_Players : Migration
|
|
{
|
|
/// <inheritdoc />
|
|
protected override void Up(MigrationBuilder migrationBuilder)
|
|
{
|
|
migrationBuilder.Sql("ALTER TABLE \"Worlds\" ALTER COLUMN \"Players\" TYPE jsonb[] USING \"Players\"::jsonb[]");
|
|
}
|
|
|
|
/// <inheritdoc />
|
|
protected override void Down(MigrationBuilder migrationBuilder)
|
|
{
|
|
migrationBuilder.Sql("ALTER TABLE \"Worlds\" ALTER COLUMN \"Players\" TYPE text[] USING \"Players\"::text[]");
|
|
}
|
|
}
|
|
} |