Files
parr_api/PARR.DAL/Migrations/20260130002924_tblAddScheduleResponseAreaTimeOffset.cs

50 lines
1.7 KiB
C#
Raw Blame History

This file contains ambiguous Unicode characters

This file contains Unicode characters that might be confused with other characters. If you think that this is intentional, you can safely ignore this warning. Use the Escape button to reveal them.

using Microsoft.EntityFrameworkCore.Migrations;
#nullable disable
namespace PARR.DAL.Migrations
{
/// <inheritdoc />
public partial class tblAddScheduleResponseAreaTimeOffset : Migration
{
/// <inheritdoc />
protected override void Up(MigrationBuilder migrationBuilder)
{
migrationBuilder.AddColumn<bool>(
name: "IsWorkGroupTimezone",
schema: "job",
table: "Groups",
type: "boolean",
nullable: false,
defaultValue: false);
migrationBuilder.CreateTable(
name: "ResponseAreaTimeOffsets",
schema: "schedule",
columns: table => new
{
ResponseArea = table.Column<string>(type: "text", nullable: false),
TimeOffset = table.Column<string>(type: "text", nullable: false)
},
constraints: table =>
{
table.PrimaryKey("PK_ResponseAreaTimeOffsets", x => x.ResponseArea);
},
comment: "Расписание в ЕСПП. Смещение часового пояса относительно МСК для зоны ответственности рабочей группы");
}
/// <inheritdoc />
protected override void Down(MigrationBuilder migrationBuilder)
{
migrationBuilder.DropTable(
name: "ResponseAreaTimeOffsets",
schema: "schedule");
migrationBuilder.DropColumn(
name: "IsWorkGroupTimezone",
schema: "job",
table: "Groups");
}
}
}