DD.WellWorkover.Cloud/AsbCloudDb/Migrations/20220102073023_Add_timeZone_to_IMapPoint.cs

50 lines
1.5 KiB
C#
Raw Normal View History

2022-01-02 12:33:18 +05:00
using AsbCloudDb.Model;
using Microsoft.EntityFrameworkCore.Migrations;
#nullable disable
namespace AsbCloudDb.Migrations
{
public partial class Add_timeZone_to_IMapPoint : Migration
{
protected override void Up(MigrationBuilder migrationBuilder)
{
migrationBuilder.AddColumn<SimpleTimezone>(
2022-01-02 12:33:18 +05:00
name: "timezone",
table: "t_well",
type: "jsonb",
nullable: true,
comment: "Смещение часового пояса от UTC");
migrationBuilder.AddColumn<SimpleTimezone>(
2022-01-02 12:33:18 +05:00
name: "timezone",
table: "t_deposit",
type: "jsonb",
nullable: true,
comment: "Смещение часового пояса от UTC");
migrationBuilder.AddColumn<SimpleTimezone>(
2022-01-02 12:33:18 +05:00
name: "timezone",
table: "t_cluster",
type: "jsonb",
nullable: true,
comment: "Смещение часового пояса от UTC");
}
protected override void Down(MigrationBuilder migrationBuilder)
{
migrationBuilder.DropColumn(
name: "timezone",
table: "t_well");
migrationBuilder.DropColumn(
name: "timezone",
table: "t_deposit");
migrationBuilder.DropColumn(
name: "timezone",
table: "t_cluster");
}
}
}