Skip to content

Commit f9c3400

Browse files
committed
fix migration
Signed-off-by: Neil South <[email protected]>
1 parent 00b217a commit f9c3400

File tree

1 file changed

+4
-10
lines changed

1 file changed

+4
-10
lines changed

src/Database/EntityFramework/Migrations/20231204113501_Hl7DEstinationAndConfig.cs

Lines changed: 4 additions & 10 deletions
Original file line numberDiff line numberDiff line change
@@ -9,11 +9,6 @@ public partial class Hl7DEstinationAndConfig : Migration
99
{
1010
protected override void Up(MigrationBuilder migrationBuilder)
1111
{
12-
migrationBuilder.RenameIndex(
13-
name: "idx_source_all1",
14-
table: "SourceApplicationEntities",
15-
newName: "idx_source_all2");
16-
1712
migrationBuilder.CreateTable(
1813
name: "Hl7ApplicationConfig",
1914
columns: table => new
@@ -61,7 +56,7 @@ protected override void Up(MigrationBuilder migrationBuilder)
6156
unique: true);
6257

6358
migrationBuilder.CreateIndex(
64-
name: "idx_source_all1",
59+
name: "idx_source_all_HL7Destination",
6560
table: "HL7DestinationEntities",
6661
columns: new[] { "Name", "AeTitle", "HostIp", "Port" },
6762
unique: true);
@@ -75,10 +70,9 @@ protected override void Down(MigrationBuilder migrationBuilder)
7570
migrationBuilder.DropTable(
7671
name: "HL7DestinationEntities");
7772

78-
migrationBuilder.RenameIndex(
79-
name: "idx_source_all2",
80-
table: "SourceApplicationEntities",
81-
newName: "idx_source_all1");
73+
migrationBuilder.DropIndex(
74+
name: "idx_source_all_HL7Destination",
75+
table: "HL7DestinationEntities");
8276
}
8377
}
8478
}

0 commit comments

Comments
 (0)