Skip to content

Commit

Permalink
Update scripts, package, release
Browse files Browse the repository at this point in the history
  • Loading branch information
donker committed Dec 23, 2017
1 parent 0eb1d17 commit 1b9797c
Show file tree
Hide file tree
Showing 4 changed files with 66 additions and 5 deletions.
6 changes: 3 additions & 3 deletions Connect.ApiBrowser.Core/Properties/AssemblyInfo.cs
Original file line number Diff line number Diff line change
Expand Up @@ -31,6 +31,6 @@
//
// You can specify all the values or you can default the Build and Revision Numbers
// by using the '*' as shown below:
// [assembly: AssemblyVersion("01.00.00")]
[assembly: AssemblyVersion("01.00.00")]
[assembly: AssemblyFileVersion("01.00.00")]
// [assembly: AssemblyVersion("01.00.01")]
[assembly: AssemblyVersion("01.00.01")]
[assembly: AssemblyFileVersion("01.00.01")]
4 changes: 2 additions & 2 deletions Properties/AssemblyInfo.cs
Original file line number Diff line number Diff line change
Expand Up @@ -30,5 +30,5 @@
//
// You can specify all the values or you can default the Revision and Build Numbers
// by using the '*' as shown below:
[assembly: AssemblyVersion("01.00.00")]
[assembly: AssemblyFileVersion("01.00.00")]
[assembly: AssemblyVersion("01.00.01")]
[assembly: AssemblyFileVersion("01.00.01")]
57 changes: 57 additions & 0 deletions _Installation/SQL/01.00.01.SqlDataProvider
Original file line number Diff line number Diff line change
Expand Up @@ -320,3 +320,60 @@ GO
UPDATE {databaseOwner}{objectQualifier}Connect_ApiBrowser_Members
SET Description = {databaseOwner}{objectQualifier}Connect_ApiBrowser_TrimX(Description)
GO

IF EXISTS (SELECT * FROM sys.objects WHERE object_id = OBJECT_ID(N'{databaseOwner}{objectQualifier}Connect_ApiBrowser_GetModerationList') AND type in (N'P', N'PC'))
DROP PROCEDURE {databaseOwner}{objectQualifier}Connect_ApiBrowser_GetModerationList
GO

SET ANSI_NULLS ON
GO
SET QUOTED_IDENTIFIER ON
GO
CREATE PROCEDURE {databaseOwner}{objectQualifier}Connect_ApiBrowser_GetModerationList
@ModuleId INT
AS
SELECT
*
FROM (SELECT
0 DocType,
c.ClassId,
-1 MemberId,
-1 DocumentationId,
c.FullQualifier,
c.Description OldText,
c.PendingDescription NewText,
c.LastModifiedOnDate,
c.LastModifiedByUserDisplayName
FROM {databaseOwner}{objectQualifier}vw_Connect_ApiBrowser_ApiClasses c
WHERE NOT c.PendingDescription IS NULL AND c.ModuleId=@ModuleId
UNION
SELECT
1 DocType,
m.ClassId,
m.MemberId,
-1 DocumentationId,
m.FullQualifier,
m.Description OldText,
m.PendingDescription NewText,
m.LastModifiedOnDate,
m.LastModifiedByUserDisplayName
FROM {databaseOwner}{objectQualifier}vw_Connect_ApiBrowser_Members m
WHERE NOT m.PendingDescription IS NULL AND m.ModuleId=@ModuleId
UNION
SELECT
2 DocType,
-1 ClassId,
-1 MemberId,
d1.DocumentationId,
d1.FullName FullQualifier,
d2.Contents OldText,
d1.Contents NewText,
d1.LastModifiedOnDate,
d1.LastModifiedByUserDisplayName
FROM {databaseOwner}{objectQualifier}vw_Connect_ApiBrowser_Documentations d1
LEFT JOIN {databaseOwner}{objectQualifier}vw_Connect_ApiBrowser_Documentations d2 ON d1.FullName=d2.FullName AND d2.IsCurrentVersion=1 AND d2.ModuleId=@ModuleId
WHERE d1.ModuleId=@ModuleId AND d1.LastModifiedOnDate > d2.LastModifiedOnDate OR d2.DocumentationId IS NULL) x
ORDER BY x.FullQualifier, x.LastModifiedOnDate
GO


4 changes: 4 additions & 0 deletions _Installation/SQL/Uninstall.SqlDataProvider
Original file line number Diff line number Diff line change
Expand Up @@ -3,6 +3,10 @@ IF EXISTS (SELECT * FROM sys.objects WHERE object_id = OBJECT_ID(N'{databaseOwn
DROP PROCEDURE {databaseOwner}{objectQualifier}Connect_ApiBrowser_ClassDisappeared
GO

IF EXISTS (SELECT * FROM sys.objects WHERE object_id = OBJECT_ID(N'{databaseOwner}{objectQualifier}Connect_ApiBrowser_GetModerationList') AND type in (N'P', N'PC'))
DROP PROCEDURE {databaseOwner}{objectQualifier}Connect_ApiBrowser_GetModerationList
GO

IF EXISTS (SELECT * FROM sys.objects WHERE object_id = OBJECT_ID(N'{databaseOwner}{objectQualifier}Connect_ApiBrowser_GetNamespacesAndClasses') AND type in (N'P', N'PC'))
DROP PROCEDURE {databaseOwner}{objectQualifier}Connect_ApiBrowser_GetNamespacesAndClasses
GO
Expand Down

0 comments on commit 1b9797c

Please sign in to comment.