Skip to content

Commit 242593c

Browse files
committed
Removed unused and redundant ExtendedAttributes.DateModified column
This is effectively replaced by `Version`, and is no longer utilized.
1 parent 5da983b commit 242593c

File tree

2 files changed

+0
-3
lines changed

2 files changed

+0
-3
lines changed

OnTopic.Data.Sql.Database/Tables/ExtendedAttributes.sql

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -9,7 +9,6 @@ CREATE
99
TABLE [dbo].[ExtendedAttributes] (
1010
[TopicID] INT NOT NULL,
1111
[AttributesXml] XML NOT NULL,
12-
[DateModified] DATETIME NOT NULL DEFAULT GETUTCDATE(),
1312
[Version] DATETIME NOT NULL DEFAULT GETUTCDATE(),
1413
CONSTRAINT [PK_ExtendedAttributes] PRIMARY KEY CLUSTERED (
1514
[TopicID] ASC,

OnTopic.Data.Sql.Database/Utilities/Stored Procedures/DeleteConsecutiveExtendedAttributes.sql

Lines changed: 0 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -33,7 +33,6 @@ Print('Initial Count: ' + CAST(@Count AS VARCHAR) + ' Extended Attributes in the
3333
WITH GroupedValues AS (
3434
SELECT TopicID,
3535
AttributesXml,
36-
DateModified,
3736
Version,
3837
ValueGroup = ROW_NUMBER() OVER(PARTITION BY TopicID ORDER BY TopicID, Version)
3938
- ROW_NUMBER() OVER(PARTITION BY TopicID, CAST(AttributesXml AS NVARCHAR(MAX)) ORDER BY TopicID, Version)
@@ -46,7 +45,6 @@ WITH GroupedValues AS (
4645
RankedValues AS (
4746
SELECT TopicID,
4847
AttributesXml,
49-
DateModified,
5048
Version,
5149
ValueGroup,
5250
ValueRank = ROW_NUMBER() OVER(PARTITION BY ValueGroup, TopicID, CAST(AttributesXml AS NVARCHAR(MAX)) ORDER BY TopicID, Version)

0 commit comments

Comments
 (0)