2021-11-16 13:14:31 +05:00
|
|
|
|
using AsbCloudDb.Model;
|
|
|
|
|
using Microsoft.EntityFrameworkCore.Migrations;
|
|
|
|
|
|
|
|
|
|
namespace AsbCloudDb.Migrations
|
|
|
|
|
{
|
|
|
|
|
public partial class Add_Telemetry_TimeZone : Migration
|
|
|
|
|
{
|
|
|
|
|
protected override void Up(MigrationBuilder migrationBuilder)
|
|
|
|
|
{
|
2022-01-02 12:33:18 +05:00
|
|
|
|
migrationBuilder.AddColumn<SimpleTimeZone>(
|
2021-11-16 13:14:31 +05:00
|
|
|
|
name: "timezone",
|
|
|
|
|
table: "t_telemetry",
|
|
|
|
|
type: "jsonb",
|
|
|
|
|
nullable: true,
|
|
|
|
|
comment: "Смещение часового пояса от UTC");
|
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
protected override void Down(MigrationBuilder migrationBuilder)
|
|
|
|
|
{
|
|
|
|
|
migrationBuilder.DropColumn(
|
|
|
|
|
name: "timezone",
|
|
|
|
|
table: "t_telemetry");
|
|
|
|
|
}
|
|
|
|
|
}
|
|
|
|
|
}
|