using Microsoft.EntityFrameworkCore.Migrations;

#nullable disable

namespace PARR.DAL.Migrations
{
    /// <inheritdoc />
    public partial class tblSettingsAddEsppRobotAccountTimeZoneHourAndUpdScheduleTimezone : Migration
    {
        /// <inheritdoc />
        protected override void Up(MigrationBuilder migrationBuilder)
        {
            migrationBuilder.UpdateData(
                table: "Settings",
                keyColumn: "Name",
                keyValue: "ScheduleTimezone",
                column: "Value",
                value: "MSK");

            migrationBuilder.InsertData(
                table: "Settings",
                columns: new[] { "Name", "Description", "Value" },
                values: new object[] { "EsppRobotAccountTimeZoneHour", "Таймзона УЗ роботов в ЕСПП, в часах (может быть положительная и отрицательная)", "3" });
        }

        /// <inheritdoc />
        protected override void Down(MigrationBuilder migrationBuilder)
        {
            migrationBuilder.DeleteData(
                table: "Settings",
                keyColumn: "Name",
                keyValue: "EsppRobotAccountTimeZoneHour");

            migrationBuilder.UpdateData(
                table: "Settings",
                keyColumn: "Name",
                keyValue: "ScheduleTimezone",
                column: "Value",
                value: "Greenwich/Universal");
        }
    }
}
