forked from ddrilling/AsbCloudServer
962d6e15b6
Replace DateTime to DateTimeOffset in models
114 lines
3.7 KiB
C#
114 lines
3.7 KiB
C#
using Microsoft.EntityFrameworkCore.Migrations;
|
||
|
||
#nullable disable
|
||
|
||
namespace AsbCloudDb.Migrations
|
||
{
|
||
public partial class Fix_spelling_of_defaults : Migration
|
||
{
|
||
protected override void Up(MigrationBuilder migrationBuilder)
|
||
{
|
||
migrationBuilder.UpdateData(
|
||
table: "t_well_operation_category",
|
||
keyColumn: "id",
|
||
keyValue: 1014,
|
||
column: "name",
|
||
value: "Опрессовка Ц.К.");
|
||
|
||
migrationBuilder.UpdateData(
|
||
table: "t_well_section_type",
|
||
keyColumn: "id",
|
||
keyValue: 1,
|
||
column: "caption",
|
||
value: "Пилотный ствол");
|
||
|
||
migrationBuilder.UpdateData(
|
||
table: "t_well_section_type",
|
||
keyColumn: "id",
|
||
keyValue: 2,
|
||
column: "caption",
|
||
value: "Направление");
|
||
|
||
migrationBuilder.UpdateData(
|
||
table: "t_well_section_type",
|
||
keyColumn: "id",
|
||
keyValue: 3,
|
||
column: "caption",
|
||
value: "Кондуктор");
|
||
|
||
migrationBuilder.UpdateData(
|
||
table: "t_well_section_type",
|
||
keyColumn: "id",
|
||
keyValue: 4,
|
||
column: "caption",
|
||
value: "Эксплуатационная колонна");
|
||
|
||
migrationBuilder.UpdateData(
|
||
table: "t_well_section_type",
|
||
keyColumn: "id",
|
||
keyValue: 5,
|
||
column: "caption",
|
||
value: "Транспортный ствол");
|
||
|
||
migrationBuilder.UpdateData(
|
||
table: "t_well_section_type",
|
||
keyColumn: "id",
|
||
keyValue: 6,
|
||
column: "caption",
|
||
value: "Хвостовик");
|
||
}
|
||
|
||
protected override void Down(MigrationBuilder migrationBuilder)
|
||
{
|
||
migrationBuilder.UpdateData(
|
||
table: "t_well_operation_category",
|
||
keyColumn: "id",
|
||
keyValue: 1014,
|
||
column: "name",
|
||
value: "Опресовка Ц.К.");
|
||
|
||
migrationBuilder.UpdateData(
|
||
table: "t_well_section_type",
|
||
keyColumn: "id",
|
||
keyValue: 1,
|
||
column: "caption",
|
||
value: "Пилотный ствол 1");
|
||
|
||
migrationBuilder.UpdateData(
|
||
table: "t_well_section_type",
|
||
keyColumn: "id",
|
||
keyValue: 2,
|
||
column: "caption",
|
||
value: "Направление 1");
|
||
|
||
migrationBuilder.UpdateData(
|
||
table: "t_well_section_type",
|
||
keyColumn: "id",
|
||
keyValue: 3,
|
||
column: "caption",
|
||
value: "Кондуктор 1");
|
||
|
||
migrationBuilder.UpdateData(
|
||
table: "t_well_section_type",
|
||
keyColumn: "id",
|
||
keyValue: 4,
|
||
column: "caption",
|
||
value: "Эксплуатационная колонна 1");
|
||
|
||
migrationBuilder.UpdateData(
|
||
table: "t_well_section_type",
|
||
keyColumn: "id",
|
||
keyValue: 5,
|
||
column: "caption",
|
||
value: "Транспортный ствол 1");
|
||
|
||
migrationBuilder.UpdateData(
|
||
table: "t_well_section_type",
|
||
keyColumn: "id",
|
||
keyValue: 6,
|
||
column: "caption",
|
||
value: "Хвостовик 1");
|
||
}
|
||
}
|
||
}
|