-
Notifications
You must be signed in to change notification settings - Fork 21
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
- Loading branch information
paul_calderon
committed
Nov 2, 2022
1 parent
7918ff9
commit d1fd5e4
Showing
3 changed files
with
33 additions
and
1 deletion.
There are no files selected for viewing
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
26 changes: 26 additions & 0 deletions
26
Providers/DataProviders/sqldataprovider/06.05.08.sqldataprovider
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,26 @@ | ||
/************************************************************/ | ||
/***** SqlDataProvider *****/ | ||
/***** Install/Upgrade for UserDefinedTable 6.5.8 *****/ | ||
/***** *****/ | ||
/***** *****/ | ||
/***** Note: To manually execute this script you must *****/ | ||
/***** perform a search AND replace operation *****/ | ||
/***** for {databaseOwner} AND {objectQualifier} *****/ | ||
/***** or use 'SQL' FROM Host Menu AND run this. *****/ | ||
/***** *****/ | ||
/***** *****/ | ||
/************************************************************/ | ||
|
||
//Improve index for search with dates | ||
|
||
IF EXISTS (SELECT Name FROM sys.indexes WHERE Name = 'IX_{objectQualifier}UserDefinedRows') | ||
BEGIN | ||
CREATE NONCLUSTERED INDEX [IX_{objectQualifier}UserDefinedRows] ON {databaseOwner}[{objectQualifier}UserDefinedRows] ([ModuleId],[CreatedAt]) | ||
WITH(DROP_EXISTING = ON) | ||
END | ||
ELSE | ||
BEGIN | ||
CREATE NONCLUSTERED INDEX [IX_{objectQualifier}UserDefinedRows] ON {databaseOwner}[{objectQualifier}UserDefinedRows] ([ModuleId],[CreatedAt]) | ||
WITH(DROP_EXISTING = OFF) | ||
END | ||
GO |