Merge
This commit is contained in:
commit
e4611b7744
14 changed files with 352 additions and 59 deletions
|
@ -2416,6 +2416,12 @@ INSERT [dbo].[Quotas] ([QuotaID], [GroupID],[QuotaOrder], [QuotaName], [QuotaDe
|
|||
END
|
||||
GO
|
||||
|
||||
IF NOT EXISTS (SELECT * FROM [dbo].[Quotas] WHERE [QuotaName] = 'RDS.Collections')
|
||||
BEGIN
|
||||
INSERT [dbo].[Quotas] ([QuotaID], [GroupID],[QuotaOrder], [QuotaName], [QuotaDescription], [QuotaTypeID], [ServiceQuota], [ItemTypeID]) VALUES (491, 45, 2, N'RDS.Collections',N'Remote Desktop Servers',2, 0 , NULL)
|
||||
END
|
||||
GO
|
||||
|
||||
-- RDS Provider
|
||||
|
||||
IF NOT EXISTS (SELECT * FROM [dbo].[Providers] WHERE [DisplayName] = 'Remote Desktop Services Windows 2012')
|
||||
|
@ -5462,6 +5468,29 @@ CREATE TABLE RDSCollections
|
|||
)
|
||||
GO
|
||||
|
||||
IF NOT EXISTS(SELECT * FROM INFORMATION_SCHEMA.COLUMNS WHERE TABLE_NAME = 'RDSCollections' AND COLUMN_NAME = 'DisplayName')
|
||||
BEGIN
|
||||
ALTER TABLE [dbo].[RDSCollections]
|
||||
ADD DisplayName NVARCHAR(255)
|
||||
END
|
||||
GO
|
||||
|
||||
UPDATE [dbo].[RDSCollections] SET DisplayName = [Name] WHERE DisplayName IS NULL
|
||||
|
||||
|
||||
ALTER TABLE [dbo].[RDSCollectionUsers]
|
||||
DROP CONSTRAINT [FK_RDSCollectionUsers_RDSCollectionId]
|
||||
GO
|
||||
|
||||
|
||||
ALTER TABLE [dbo].[RDSCollectionUsers]
|
||||
DROP CONSTRAINT [FK_RDSCollectionUsers_UserId]
|
||||
GO
|
||||
|
||||
ALTER TABLE [dbo].[RDSServers]
|
||||
DROP CONSTRAINT [FK_RDSServers_RDSCollectionId]
|
||||
GO
|
||||
|
||||
ALTER TABLE [dbo].[RDSCollectionUsers] WITH CHECK ADD CONSTRAINT [FK_RDSCollectionUsers_RDSCollectionId] FOREIGN KEY([RDSCollectionId])
|
||||
REFERENCES [dbo].[RDSCollections] ([ID])
|
||||
ON DELETE CASCADE
|
||||
|
@ -5730,7 +5759,8 @@ SELECT
|
|||
CR.ID,
|
||||
CR.ItemID,
|
||||
CR.Name,
|
||||
CR.Description
|
||||
CR.Description,
|
||||
CR.DisplayName
|
||||
FROM @RDSCollections AS C
|
||||
INNER JOIN RDSCollections AS CR ON C.RDSCollectionId = CR.ID
|
||||
WHERE C.ItemPosition BETWEEN @StartRow AND @EndRow'
|
||||
|
@ -5763,7 +5793,8 @@ SELECT
|
|||
Id,
|
||||
ItemId,
|
||||
Name,
|
||||
Description
|
||||
Description,
|
||||
DisplayName
|
||||
FROM RDSCollections
|
||||
WHERE ItemID = @ItemID
|
||||
GO
|
||||
|
@ -5782,9 +5813,10 @@ SELECT TOP 1
|
|||
Id,
|
||||
Name,
|
||||
ItemId,
|
||||
Description
|
||||
Description,
|
||||
DisplayName
|
||||
FROM RDSCollections
|
||||
WHERE Name = @Name
|
||||
WHERE DisplayName = @Name
|
||||
GO
|
||||
|
||||
|
||||
|
@ -5801,7 +5833,8 @@ SELECT TOP 1
|
|||
Id,
|
||||
ItemId,
|
||||
Name,
|
||||
Description
|
||||
Description,
|
||||
DisplayName
|
||||
FROM RDSCollections
|
||||
WHERE ID = @ID
|
||||
GO
|
||||
|
@ -5815,7 +5848,8 @@ CREATE PROCEDURE [dbo].[AddRDSCollection]
|
|||
@RDSCollectionID INT OUTPUT,
|
||||
@ItemID INT,
|
||||
@Name NVARCHAR(255),
|
||||
@Description NVARCHAR(255)
|
||||
@Description NVARCHAR(255),
|
||||
@DisplayName NVARCHAR(255)
|
||||
)
|
||||
AS
|
||||
|
||||
|
@ -5823,13 +5857,15 @@ INSERT INTO RDSCollections
|
|||
(
|
||||
ItemID,
|
||||
Name,
|
||||
Description
|
||||
Description,
|
||||
DisplayName
|
||||
)
|
||||
VALUES
|
||||
(
|
||||
@ItemID,
|
||||
@Name,
|
||||
@Description
|
||||
@Description,
|
||||
@DisplayName
|
||||
)
|
||||
|
||||
SET @RDSCollectionID = SCOPE_IDENTITY()
|
||||
|
@ -5846,7 +5882,8 @@ CREATE PROCEDURE [dbo].[UpdateRDSCollection]
|
|||
@ID INT,
|
||||
@ItemID INT,
|
||||
@Name NVARCHAR(255),
|
||||
@Description NVARCHAR(255)
|
||||
@Description NVARCHAR(255),
|
||||
@DisplayName NVARCHAR(255)
|
||||
)
|
||||
AS
|
||||
|
||||
|
@ -5854,7 +5891,8 @@ UPDATE RDSCollections
|
|||
SET
|
||||
ItemID = @ItemID,
|
||||
Name = @Name,
|
||||
Description = @Description
|
||||
Description = @Description,
|
||||
DisplayName = @DisplayName
|
||||
WHERE ID = @Id
|
||||
GO
|
||||
|
||||
|
@ -5970,6 +6008,36 @@ SELECT
|
|||
RETURN
|
||||
GO
|
||||
|
||||
IF EXISTS (SELECT * FROM SYS.OBJECTS WHERE type = 'P' AND name = 'GetOrganizationRdsCollectionsCount')
|
||||
DROP PROCEDURE GetOrganizationRdsCollectionsCount
|
||||
GO
|
||||
CREATE PROCEDURE [dbo].GetOrganizationRdsCollectionsCount
|
||||
(
|
||||
@ItemID INT,
|
||||
@TotalNumber int OUTPUT
|
||||
)
|
||||
AS
|
||||
SELECT
|
||||
@TotalNumber = Count([Id])
|
||||
FROM [dbo].[RDSCollections] WHERE [ItemId] = @ItemId
|
||||
RETURN
|
||||
GO
|
||||
|
||||
|
||||
IF EXISTS (SELECT * FROM SYS.OBJECTS WHERE type = 'P' AND name = 'GetOrganizationRdsServersCount')
|
||||
DROP PROCEDURE GetOrganizationRdsServersCount
|
||||
GO
|
||||
CREATE PROCEDURE [dbo].GetOrganizationRdsServersCount
|
||||
(
|
||||
@ItemID INT,
|
||||
@TotalNumber int OUTPUT
|
||||
)
|
||||
AS
|
||||
SELECT
|
||||
@TotalNumber = Count([Id])
|
||||
FROM [dbo].[RDSServers] WHERE [ItemId] = @ItemId
|
||||
RETURN
|
||||
GO
|
||||
|
||||
-- wsp-10269: Changed php extension path in default properties for IIS70 and IIS80 provider
|
||||
update ServiceDefaultProperties
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue