This commit is contained in:
Фролов 2021-12-22 16:07:17 +05:00
commit 774447e51f
5 changed files with 3487 additions and 12 deletions

File diff suppressed because it is too large Load Diff

View File

@ -0,0 +1,248 @@
using Microsoft.EntityFrameworkCore.Migrations;
namespace AsbCloudDb.Migrations
{
public partial class AddedNewSectionTypes : Migration
{
protected override void Up(MigrationBuilder migrationBuilder)
{
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: "Пилотный ствол 2");
migrationBuilder.UpdateData(
table: "t_well_section_type",
keyColumn: "id",
keyValue: 3,
column: "caption",
value: "Пилотный ствол 3");
migrationBuilder.UpdateData(
table: "t_well_section_type",
keyColumn: "id",
keyValue: 4,
column: "caption",
value: "Пилотный ствол 4");
migrationBuilder.UpdateData(
table: "t_well_section_type",
keyColumn: "id",
keyValue: 5,
column: "caption",
value: "Пилотный ствол 5");
migrationBuilder.UpdateData(
table: "t_well_section_type",
keyColumn: "id",
keyValue: 6,
column: "caption",
value: "Направление 1");
migrationBuilder.InsertData(
table: "t_well_section_type",
columns: new[] { "id", "caption" },
values: new object[,]
{
{ 30, "Хвостовик 5" },
{ 29, "Хвостовик 4" },
{ 28, "Хвостовик 3" },
{ 27, "Хвостовик 2" },
{ 26, "Хвостовик 1" },
{ 25, "Транспортный ствол 5" },
{ 24, "Транспортный ствол 4" },
{ 23, "Транспортный ствол 3" },
{ 22, "Транспортный ствол 2" },
{ 21, "Транспортный ствол 1" },
{ 19, "Эксплуатационная колонна 4" },
{ 18, "Эксплуатационная колонна 3" },
{ 17, "Эксплуатационная колонна 2" },
{ 16, "Эксплуатационная колонна 1" },
{ 15, "Кондуктор 5" },
{ 14, "Кондуктор 4" },
{ 13, "Кондуктор 3" },
{ 12, "Кондуктор 2" },
{ 11, "Кондуктор 1" },
{ 10, "Направление 5" },
{ 9, "Направление 4" },
{ 8, "Направление 3" },
{ 20, "Эксплуатационная колонна 5" },
{ 7, "Направление 2" }
});
}
protected override void Down(MigrationBuilder migrationBuilder)
{
migrationBuilder.DeleteData(
table: "t_well_section_type",
keyColumn: "id",
keyValue: 7);
migrationBuilder.DeleteData(
table: "t_well_section_type",
keyColumn: "id",
keyValue: 8);
migrationBuilder.DeleteData(
table: "t_well_section_type",
keyColumn: "id",
keyValue: 9);
migrationBuilder.DeleteData(
table: "t_well_section_type",
keyColumn: "id",
keyValue: 10);
migrationBuilder.DeleteData(
table: "t_well_section_type",
keyColumn: "id",
keyValue: 11);
migrationBuilder.DeleteData(
table: "t_well_section_type",
keyColumn: "id",
keyValue: 12);
migrationBuilder.DeleteData(
table: "t_well_section_type",
keyColumn: "id",
keyValue: 13);
migrationBuilder.DeleteData(
table: "t_well_section_type",
keyColumn: "id",
keyValue: 14);
migrationBuilder.DeleteData(
table: "t_well_section_type",
keyColumn: "id",
keyValue: 15);
migrationBuilder.DeleteData(
table: "t_well_section_type",
keyColumn: "id",
keyValue: 16);
migrationBuilder.DeleteData(
table: "t_well_section_type",
keyColumn: "id",
keyValue: 17);
migrationBuilder.DeleteData(
table: "t_well_section_type",
keyColumn: "id",
keyValue: 18);
migrationBuilder.DeleteData(
table: "t_well_section_type",
keyColumn: "id",
keyValue: 19);
migrationBuilder.DeleteData(
table: "t_well_section_type",
keyColumn: "id",
keyValue: 20);
migrationBuilder.DeleteData(
table: "t_well_section_type",
keyColumn: "id",
keyValue: 21);
migrationBuilder.DeleteData(
table: "t_well_section_type",
keyColumn: "id",
keyValue: 22);
migrationBuilder.DeleteData(
table: "t_well_section_type",
keyColumn: "id",
keyValue: 23);
migrationBuilder.DeleteData(
table: "t_well_section_type",
keyColumn: "id",
keyValue: 24);
migrationBuilder.DeleteData(
table: "t_well_section_type",
keyColumn: "id",
keyValue: 25);
migrationBuilder.DeleteData(
table: "t_well_section_type",
keyColumn: "id",
keyValue: 26);
migrationBuilder.DeleteData(
table: "t_well_section_type",
keyColumn: "id",
keyValue: 27);
migrationBuilder.DeleteData(
table: "t_well_section_type",
keyColumn: "id",
keyValue: 28);
migrationBuilder.DeleteData(
table: "t_well_section_type",
keyColumn: "id",
keyValue: 29);
migrationBuilder.DeleteData(
table: "t_well_section_type",
keyColumn: "id",
keyValue: 30);
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: "Хвостовик");
}
}
}

View File

@ -2406,32 +2406,152 @@ namespace AsbCloudDb.Migrations
new
{
Id = 1,
Caption = "Пилотный ствол"
Caption = "Пилотный ствол 1"
},
new
{
Id = 2,
Caption = "Направление"
Caption = "Пилотный ствол 2"
},
new
{
Id = 3,
Caption = "Кондуктор"
Caption = "Пилотный ствол 3"
},
new
{
Id = 4,
Caption = "Эксплуатационная колонна"
Caption = "Пилотный ствол 4"
},
new
{
Id = 5,
Caption = "Транспортный ствол"
Caption = "Пилотный ствол 5"
},
new
{
Id = 6,
Caption = "Хвостовик"
Caption = "Направление 1"
},
new
{
Id = 7,
Caption = "Направление 2"
},
new
{
Id = 8,
Caption = "Направление 3"
},
new
{
Id = 9,
Caption = "Направление 4"
},
new
{
Id = 10,
Caption = "Направление 5"
},
new
{
Id = 11,
Caption = "Кондуктор 1"
},
new
{
Id = 12,
Caption = "Кондуктор 2"
},
new
{
Id = 13,
Caption = "Кондуктор 3"
},
new
{
Id = 14,
Caption = "Кондуктор 4"
},
new
{
Id = 15,
Caption = "Кондуктор 5"
},
new
{
Id = 16,
Caption = "Эксплуатационная колонна 1"
},
new
{
Id = 17,
Caption = "Эксплуатационная колонна 2"
},
new
{
Id = 18,
Caption = "Эксплуатационная колонна 3"
},
new
{
Id = 19,
Caption = "Эксплуатационная колонна 4"
},
new
{
Id = 20,
Caption = "Эксплуатационная колонна 5"
},
new
{
Id = 21,
Caption = "Транспортный ствол 1"
},
new
{
Id = 22,
Caption = "Транспортный ствол 2"
},
new
{
Id = 23,
Caption = "Транспортный ствол 3"
},
new
{
Id = 24,
Caption = "Транспортный ствол 4"
},
new
{
Id = 25,
Caption = "Транспортный ствол 5"
},
new
{
Id = 26,
Caption = "Хвостовик 1"
},
new
{
Id = 27,
Caption = "Хвостовик 2"
},
new
{
Id = 28,
Caption = "Хвостовик 3"
},
new
{
Id = 29,
Caption = "Хвостовик 4"
},
new
{
Id = 30,
Caption = "Хвостовик 5"
});
});

View File

@ -402,12 +402,36 @@ namespace AsbCloudDb.Model
modelBuilder.Entity<WellSectionType>(entity =>
{
entity.HasData(new List<WellSectionType>{
new WellSectionType{ Id = 1, Caption = "Пилотный ствол"},
new WellSectionType{ Id = 2, Caption = "Направление"},
new WellSectionType{ Id = 3, Caption = "Кондуктор"},
new WellSectionType{ Id = 4, Caption = "Эксплуатационная колонна"},
new WellSectionType{ Id = 5, Caption = "Транспортный ствол"},
new WellSectionType{ Id = 6, Caption = "Хвостовик"},
new WellSectionType{ Id = 1, Caption = "Пилотный ствол 1"},
new WellSectionType{ Id = 2, Caption = "Пилотный ствол 2"},
new WellSectionType{ Id = 3, Caption = "Пилотный ствол 3"},
new WellSectionType{ Id = 4, Caption = "Пилотный ствол 4"},
new WellSectionType{ Id = 5, Caption = "Пилотный ствол 5"},
new WellSectionType{ Id = 6, Caption = "Направление 1"},
new WellSectionType{ Id = 7, Caption = "Направление 2"},
new WellSectionType{ Id = 8, Caption = "Направление 3"},
new WellSectionType{ Id = 9, Caption = "Направление 4"},
new WellSectionType{ Id = 10, Caption = "Направление 5"},
new WellSectionType{ Id = 11, Caption = "Кондуктор 1"},
new WellSectionType{ Id = 12, Caption = "Кондуктор 2"},
new WellSectionType{ Id = 13, Caption = "Кондуктор 3"},
new WellSectionType{ Id = 14, Caption = "Кондуктор 4"},
new WellSectionType{ Id = 15, Caption = "Кондуктор 5"},
new WellSectionType{ Id = 16, Caption = "Эксплуатационная колонна 1"},
new WellSectionType{ Id = 17, Caption = "Эксплуатационная колонна 2"},
new WellSectionType{ Id = 18, Caption = "Эксплуатационная колонна 3"},
new WellSectionType{ Id = 19, Caption = "Эксплуатационная колонна 4"},
new WellSectionType{ Id = 20, Caption = "Эксплуатационная колонна 5"},
new WellSectionType{ Id = 21, Caption = "Транспортный ствол 1"},
new WellSectionType{ Id = 22, Caption = "Транспортный ствол 2"},
new WellSectionType{ Id = 23, Caption = "Транспортный ствол 3"},
new WellSectionType{ Id = 24, Caption = "Транспортный ствол 4"},
new WellSectionType{ Id = 25, Caption = "Транспортный ствол 5"},
new WellSectionType{ Id = 26, Caption = "Хвостовик 1"},
new WellSectionType{ Id = 27, Caption = "Хвостовик 2"},
new WellSectionType{ Id = 28, Caption = "Хвостовик 3"},
new WellSectionType{ Id = 29, Caption = "Хвостовик 4"},
new WellSectionType{ Id = 30, Caption = "Хвостовик 5"}
});
});