Skip to content

Commit e565f0e

Browse files
committed
Moved legacy LeftRightRange to Utilities schema
While the `LeftRightRange` view is a preexisting view, and thus this is a breaking change, it's not a view that is publicly documented, and it's exclusively used by the `CompressHierarchy` stored procedure—which is _also_ a preexisting object which was moved to the `Utilities` schema as part of a minor release under the same justification. This helps keep the `dbo` schema focused on items which are publicly documented and expected to be used directly as part of the library.
1 parent 4a17205 commit e565f0e

File tree

3 files changed

+4
-4
lines changed

3 files changed

+4
-4
lines changed

OnTopic.Data.Sql.Database/OnTopic.Data.Sql.Database.sqlproj

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -86,14 +86,14 @@
8686
<Build Include="Functions\GetExtendedAttribute.sql" />
8787
<Build Include="Functions\GetUniqueKey.sql" />
8888
<Build Include="Utilities\Views\UniqueKeyIndex.sql" />
89+
<Build Include="Utilities\Views\LeftRightRange.sql" />
8990
</ItemGroup>
9091
<ItemGroup>
9192
<Build Include="Tables\ExtendedAttributes.sql" />
9293
<Build Include="Tables\Hierarchy.sql" />
9394
<Build Include="Tables\Relationships.sql" />
9495
<Build Include="Tables\Topics.sql" />
9596
<Build Include="Tables\Attributes.sql" />
96-
<Build Include="Views\LeftRightRange.sql" />
9797
<Build Include="Views\TopicIndex.sql" />
9898
<Build Include="Views\AttributeIndex.sql" />
9999
<Build Include="Views\ExtendedAttributeIndex.sql" />

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

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -15,11 +15,11 @@ SET NOCOUNT ON;
1515
UPDATE Topics
1616
SET RangeLeft = (
1717
SELECT COUNT(*)
18-
FROM LeftRightRange
18+
FROM [Utilities].[LeftRightRange]
1919
WHERE seq <= RangeLeft
2020
),
2121
RangeRight = (
2222
SELECT COUNT(*)
23-
FROM LeftRightRange
23+
FROM [Utilities].[LeftRightRange]
2424
WHERE seq <= ISNULL(RangeRight, 0)
2525
);

OnTopic.Data.Sql.Database/Views/LeftRightRange.sql renamed to OnTopic.Data.Sql.Database/Utilities/Views/LeftRightRange.sql

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -6,7 +6,7 @@
66
-- uninterrupted sequence between the first row's RangeLeft and RangeRight.)
77
--------------------------------------------------------------------------------------------------------------------------------
88
CREATE
9-
VIEW [dbo].[LeftRightRange] (seq) AS
9+
VIEW [Utilities].[LeftRightRange] (seq) AS
1010

1111
SELECT RangeLeft
1212
FROM Topics

0 commit comments

Comments
 (0)