using System; using Microsoft.EntityFrameworkCore.Migrations; using Npgsql.EntityFrameworkCore.PostgreSQL.Metadata; #nullable disable namespace AsbCloudDb.Migrations { public partial class Add_ProcessMapDrillingCache : Migration { protected override void Up(MigrationBuilder migrationBuilder) { migrationBuilder.CreateTable( name: "t_process_map_drilling_cache", columns: table => new { id = table.Column(type: "integer", nullable: false) .Annotation("Npgsql:ValueGenerationStrategy", NpgsqlValueGenerationStrategy.IdentityByDefaultColumn), date_from = table.Column(type: "timestamp with time zone", nullable: false, comment: "Дата начала"), date_to = table.Column(type: "timestamp with time zone", nullable: false, comment: "Дата окончания") }, constraints: table => { table.PrimaryKey("PK_t_process_map_drilling_cache", x => x.id); }, comment: "Кеш-таблица для хранения данных для РТК-отчета"); } protected override void Down(MigrationBuilder migrationBuilder) { migrationBuilder.DropTable( name: "t_process_map_drilling_cache"); } } }