Skip to content
This repository has been archived by the owner on Jun 16, 2022. It is now read-only.

Commit

Permalink
[BugFix] The 'if not exists'-check for the table index wasn't working…
Browse files Browse the repository at this point in the history
… correctly
  • Loading branch information
kipusoep committed Jun 23, 2014
1 parent 4f4cec2 commit 4129028
Show file tree
Hide file tree
Showing 4 changed files with 17 additions and 3 deletions.
4 changes: 2 additions & 2 deletions Properties/AssemblyInfo.cs
Original file line number Diff line number Diff line change
Expand Up @@ -30,8 +30,8 @@
// Build Number
// Revision
//
[assembly: AssemblyVersion("2.6.1.0")]
[assembly: AssemblyFileVersion("2.6.1.0")]
[assembly: AssemblyVersion("2.6.2.0")]
[assembly: AssemblyFileVersion("2.6.2.0")]

// SQL
[assembly: WebResource("InfoCaster.Umbraco.UrlTracker.SQL.create-table-1.sql", "text/plain")]
Expand Down
2 changes: 2 additions & 0 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -17,6 +17,8 @@ You can also create your own redirects, based on a simple URL or using a Regex p
* Supports **multiple websites** in a single umbraco instance

## Changelog ##
* 2.6.2 [2014/06/23]
* [BugFix] The 'if not exists'-check for the table index wasn't working correctly
* 2.6.1 [2014/06/23]
* [BugFix] Added 'if not exists'-check for table index
* 2.6.0 [2014/06/20]
Expand Down
8 changes: 7 additions & 1 deletion SQL/update-table-3.sql
Original file line number Diff line number Diff line change
@@ -1,4 +1,10 @@
IF EXISTS (SELECT 1 FROM INFORMATION_SCHEMA.COLUMNS WHERE TABLE_NAME = 'icUrlTracker') AND NOT EXISTS (SELECT 1 FROM INFORMATION_SCHEMA.TABLE_CONSTRAINTS WHERE TABLE_NAME = 'icUrlTracker' AND CONSTRAINT_NAME = 'IX_icUrlTracker')
DECLARE @indexes TABLE (
index_name nvarchar(MAX),
index_description nvarchar(MAX),
index_keys nvarchar(MAX)
)
INSERT INTO @indexes EXEC sp_helpindex 'icUrlTracker'
IF EXISTS (SELECT 1 FROM INFORMATION_SCHEMA.COLUMNS WHERE TABLE_NAME = 'icUrlTracker') AND NOT EXISTS (SELECT 1 FROM @indexes WHERE index_name = 'IX_icUrlTracker')
BEGIN
CREATE NONCLUSTERED INDEX [IX_icUrlTracker] ON [icUrlTracker]
(
Expand Down
6 changes: 6 additions & 0 deletions UI/UrlTrackerInfo.aspx
Original file line number Diff line number Diff line change
Expand Up @@ -80,6 +80,12 @@
</div>
<div class="tab-pane" id="changeLog">
<ul>
<li>
2.6.2 [2014/06/23]
<ul>
<li>[BugFix] The 'if not exists'-check for the table index wasn't working correctly</li>
</ul>
</li>
<li>
2.6.1 [2014/06/23]
<ul>
Expand Down

0 comments on commit 4129028

Please sign in to comment.