20260104090149_Migration_20260104170139.cs 1.79 KB
using Microsoft.EntityFrameworkCore.Migrations;

#nullable disable

namespace Rcs.Infrastructure.Migrations
{
    /// <inheritdoc />
    public partial class Migration_20260104170139 : Migration
    {
        /// <inheritdoc />
        protected override void Up(MigrationBuilder migrationBuilder)
        {
            migrationBuilder.DropColumn(
                name: "points_url",
                table: "map_files");

            migrationBuilder.DropColumn(
                name: "resource_url",
                table: "map_files");

            migrationBuilder.AddColumn<string>(
                name: "points_url",
                table: "maps",
                type: "character varying(512)",
                maxLength: 512,
                nullable: true);

            migrationBuilder.AddColumn<string>(
                name: "resource_url",
                table: "maps",
                type: "character varying(512)",
                maxLength: 512,
                nullable: true);
        }

        /// <inheritdoc />
        protected override void Down(MigrationBuilder migrationBuilder)
        {
            migrationBuilder.DropColumn(
                name: "points_url",
                table: "maps");

            migrationBuilder.DropColumn(
                name: "resource_url",
                table: "maps");

            migrationBuilder.AddColumn<string>(
                name: "points_url",
                table: "map_files",
                type: "character varying(512)",
                maxLength: 512,
                nullable: true);

            migrationBuilder.AddColumn<string>(
                name: "resource_url",
                table: "map_files",
                type: "character varying(512)",
                maxLength: 512,
                nullable: true);
        }
    }
}