20260112041724_Migration_20260112121714.cs 1.78 KB
using Microsoft.EntityFrameworkCore.Migrations;

#nullable disable

namespace Rcs.Infrastructure.Migrations
{
    /// <inheritdoc />
    public partial class Migration_20260112121714 : Migration
    {
        /// <inheritdoc />
        protected override void Up(MigrationBuilder migrationBuilder)
        {
            migrationBuilder.AddColumn<bool>(
                name: "points_auto_sync",
                table: "maps",
                type: "boolean",
                nullable: false,
                defaultValue: false);

            migrationBuilder.AddColumn<int>(
                name: "points_sync_interval",
                table: "maps",
                type: "integer",
                nullable: false,
                defaultValue: 60);

            migrationBuilder.AddColumn<bool>(
                name: "resource_auto_sync",
                table: "maps",
                type: "boolean",
                nullable: false,
                defaultValue: false);

            migrationBuilder.AddColumn<int>(
                name: "resource_sync_interval",
                table: "maps",
                type: "integer",
                nullable: false,
                defaultValue: 60);
        }

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

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

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

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