Skip to content

Commit

Permalink
Removing the "WITH(ONLINE=ON)" from the index creation as per #3952 (#…
Browse files Browse the repository at this point in the history
  • Loading branch information
agr authored May 30, 2017
1 parent f8c9246 commit f27d0d5
Showing 1 changed file with 1 addition and 1 deletion.
Original file line number Diff line number Diff line change
Expand Up @@ -7,7 +7,7 @@ public partial class AddIndexSemVerLevelKey : DbMigration
{
public override void Up()
{
Sql("IF NOT EXISTS(SELECT * FROM sys.indexes WHERE name = 'nci_wi_Packages_SemVerLevelKey' AND object_id = OBJECT_ID('Packages')) CREATE NONCLUSTERED INDEX [nci_wi_Packages_SemVerLevelKey] ON [dbo].[Packages] ([SemVerLevelKey], [IsLatest], [Deleted]) INCLUDE ([PackageRegistrationKey]) WITH (ONLINE = ON)");
Sql("IF NOT EXISTS(SELECT * FROM sys.indexes WHERE name = 'nci_wi_Packages_SemVerLevelKey' AND object_id = OBJECT_ID('Packages')) CREATE NONCLUSTERED INDEX [nci_wi_Packages_SemVerLevelKey] ON [dbo].[Packages] ([SemVerLevelKey], [IsLatest], [Deleted]) INCLUDE ([PackageRegistrationKey])");
}

public override void Down()
Expand Down

0 comments on commit f27d0d5

Please sign in to comment.