-
Notifications
You must be signed in to change notification settings - Fork 9
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
perf: recreate wms index to add include niscode
- Loading branch information
Showing
4 changed files
with
239 additions
and
10 deletions.
There are no files selected for viewing
181 changes: 181 additions & 0 deletions
181
...ameRegistry.Projections.Wms/Migrations/20230901064608_RecreateWmsIndexRemoved.Designer.cs
Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.
Oops, something went wrong.
39 changes: 39 additions & 0 deletions
39
src/StreetNameRegistry.Projections.Wms/Migrations/20230901064608_RecreateWmsIndexRemoved.cs
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,39 @@ | ||
using System; | ||
using Microsoft.EntityFrameworkCore.Migrations; | ||
|
||
#nullable disable | ||
|
||
namespace StreetNameRegistry.Projections.Wms.Migrations | ||
{ | ||
public partial class RecreateWmsIndexRemoved : Migration | ||
{ | ||
protected override void Up(MigrationBuilder migrationBuilder) | ||
{ | ||
migrationBuilder.DropIndex( | ||
name: "IX_StreetNameHelperV2_Removed", | ||
schema: "wms.streetname", | ||
table: "StreetNameHelperV2"); | ||
|
||
migrationBuilder.CreateIndex( | ||
name: "IX_StreetNameHelperV2_Removed", | ||
schema: "wms.streetname", | ||
table: "StreetNameHelperV2", | ||
column: "Removed") | ||
.Annotation("SqlServer:Include", new[] { "NisCode" }); | ||
} | ||
|
||
protected override void Down(MigrationBuilder migrationBuilder) | ||
{ | ||
migrationBuilder.DropIndex( | ||
name: "IX_StreetNameHelperV2_Removed", | ||
schema: "wms.streetname", | ||
table: "StreetNameHelperV2"); | ||
|
||
migrationBuilder.CreateIndex( | ||
name: "IX_StreetNameHelperV2_Removed", | ||
schema: "wms.streetname", | ||
table: "StreetNameHelperV2", | ||
column: "Removed"); | ||
} | ||
} | ||
} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters