Skip to content

Commit

Permalink
fix: don't drop add PK
Browse files Browse the repository at this point in the history
  • Loading branch information
jvandaal committed May 17, 2024
1 parent 0980d42 commit a5159ae
Show file tree
Hide file tree
Showing 2 changed files with 0 additions and 46 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -11,17 +11,6 @@ public partial class AddCountOnParcelLink : Migration
/// <inheritdoc />
protected override void Up(MigrationBuilder migrationBuilder)
{
migrationBuilder.DropPrimaryKey(
name: "PK_ProjectionStates",
schema: "ParcelRegistryExtract",
table: "ProjectionStates");

migrationBuilder.AddPrimaryKey(
name: "PK_ProjectionStates",
schema: "ParcelRegistryExtract",
table: "ProjectionStates",
column: "Name");

migrationBuilder.CreateTable(
name: "ParcelLinksWithCount",
schema: "ParcelRegistryExtract",
Expand Down Expand Up @@ -65,18 +54,6 @@ protected override void Down(MigrationBuilder migrationBuilder)
migrationBuilder.DropTable(
name: "ParcelLinksWithCount",
schema: "ParcelRegistryExtract");

migrationBuilder.DropPrimaryKey(
name: "PK_ProjectionStates",
schema: "ParcelRegistryExtract",
table: "ProjectionStates");

migrationBuilder.AddPrimaryKey(
name: "PK_ProjectionStates",
schema: "ParcelRegistryExtract",
table: "ProjectionStates",
column: "Name")
.Annotation("SqlServer:Clustered", true);
}
}
}
Original file line number Diff line number Diff line change
Expand Up @@ -11,17 +11,6 @@ public partial class AddCountOnParcelDetailAddress : Migration
/// <inheritdoc />
protected override void Up(MigrationBuilder migrationBuilder)
{
migrationBuilder.DropPrimaryKey(
name: "PK_ProjectionStates",
schema: "ParcelRegistryLegacy",
table: "ProjectionStates");

migrationBuilder.AddPrimaryKey(
name: "PK_ProjectionStates",
schema: "ParcelRegistryLegacy",
table: "ProjectionStates",
column: "Name");

migrationBuilder.CreateTable(
name: "ParcelDetailsWithCountV2",
schema: "ParcelRegistryLegacy",
Expand Down Expand Up @@ -102,18 +91,6 @@ protected override void Down(MigrationBuilder migrationBuilder)
migrationBuilder.DropTable(
name: "ParcelDetailsWithCountV2",
schema: "ParcelRegistryLegacy");

migrationBuilder.DropPrimaryKey(
name: "PK_ProjectionStates",
schema: "ParcelRegistryLegacy",
table: "ProjectionStates");

migrationBuilder.AddPrimaryKey(
name: "PK_ProjectionStates",
schema: "ParcelRegistryLegacy",
table: "ProjectionStates",
column: "Name")
.Annotation("SqlServer:Clustered", true);
}
}
}

0 comments on commit a5159ae

Please sign in to comment.