forked from ddrilling/AsbCloudServer
hotfix rename t_well_сomposite (cyrilic c) to t_well_composite.
This commit is contained in:
parent
cdb8207c35
commit
8c3c621c7b
2841
AsbCloudDb/Migrations/20211202064227_RenameTable_WellComposite.Designer.cs
generated
Normal file
2841
AsbCloudDb/Migrations/20211202064227_RenameTable_WellComposite.Designer.cs
generated
Normal file
File diff suppressed because it is too large
Load Diff
@ -0,0 +1,59 @@
|
|||||||
|
using Microsoft.EntityFrameworkCore.Migrations;
|
||||||
|
|
||||||
|
namespace AsbCloudDb.Migrations
|
||||||
|
{
|
||||||
|
public partial class RenameTable_WellComposite : Migration
|
||||||
|
{
|
||||||
|
protected override void Up(MigrationBuilder migrationBuilder)
|
||||||
|
{
|
||||||
|
migrationBuilder.DropPrimaryKey(
|
||||||
|
name: "PK_t_well_сomposite",
|
||||||
|
table: "t_well_сomposite");
|
||||||
|
|
||||||
|
migrationBuilder.RenameTable(
|
||||||
|
name: "t_well_сomposite",
|
||||||
|
newName: "t_well_composite");
|
||||||
|
|
||||||
|
migrationBuilder.RenameIndex(
|
||||||
|
name: "IX_t_well_сomposite_id_well_src",
|
||||||
|
table: "t_well_composite",
|
||||||
|
newName: "IX_t_well_composite_id_well_src");
|
||||||
|
|
||||||
|
migrationBuilder.RenameIndex(
|
||||||
|
name: "IX_t_well_сomposite_id_well_section_type",
|
||||||
|
table: "t_well_composite",
|
||||||
|
newName: "IX_t_well_composite_id_well_section_type");
|
||||||
|
|
||||||
|
migrationBuilder.AddPrimaryKey(
|
||||||
|
name: "PK_t_well_composite",
|
||||||
|
table: "t_well_composite",
|
||||||
|
columns: new[] { "id_well", "id_well_src", "id_well_section_type" });
|
||||||
|
}
|
||||||
|
|
||||||
|
protected override void Down(MigrationBuilder migrationBuilder)
|
||||||
|
{
|
||||||
|
migrationBuilder.DropPrimaryKey(
|
||||||
|
name: "PK_t_well_composite",
|
||||||
|
table: "t_well_composite");
|
||||||
|
|
||||||
|
migrationBuilder.RenameTable(
|
||||||
|
name: "t_well_composite",
|
||||||
|
newName: "t_well_сomposite");
|
||||||
|
|
||||||
|
migrationBuilder.RenameIndex(
|
||||||
|
name: "IX_t_well_composite_id_well_src",
|
||||||
|
table: "t_well_сomposite",
|
||||||
|
newName: "IX_t_well_сomposite_id_well_src");
|
||||||
|
|
||||||
|
migrationBuilder.RenameIndex(
|
||||||
|
name: "IX_t_well_composite_id_well_section_type",
|
||||||
|
table: "t_well_сomposite",
|
||||||
|
newName: "IX_t_well_сomposite_id_well_section_type");
|
||||||
|
|
||||||
|
migrationBuilder.AddPrimaryKey(
|
||||||
|
name: "PK_t_well_сomposite",
|
||||||
|
table: "t_well_сomposite",
|
||||||
|
columns: new[] { "id_well", "id_well_src", "id_well_section_type" });
|
||||||
|
}
|
||||||
|
}
|
||||||
|
}
|
@ -1794,7 +1794,7 @@ namespace AsbCloudDb.Migrations
|
|||||||
|
|
||||||
b.HasIndex("IdWellSrc");
|
b.HasIndex("IdWellSrc");
|
||||||
|
|
||||||
b.ToTable("t_well_сomposite");
|
b.ToTable("t_well_composite");
|
||||||
|
|
||||||
b
|
b
|
||||||
.HasComment("Композитная скважина");
|
.HasComment("Композитная скважина");
|
||||||
|
@ -5,7 +5,7 @@ using System.ComponentModel.DataAnnotations.Schema;
|
|||||||
#nullable disable
|
#nullable disable
|
||||||
namespace AsbCloudDb.Model
|
namespace AsbCloudDb.Model
|
||||||
{
|
{
|
||||||
[Table("t_well_сomposite"), Comment("Композитная скважина")]
|
[Table("t_well_composite"), Comment("Композитная скважина")]
|
||||||
public class WellComposite : IIdWell
|
public class WellComposite : IIdWell
|
||||||
{
|
{
|
||||||
[Column("id_well"), Comment("Id скважины получателя")]
|
[Column("id_well"), Comment("Id скважины получателя")]
|
||||||
|
Loading…
Reference in New Issue
Block a user