update_db.sql fixes
This commit is contained in:
parent
5aba0c6e9e
commit
e2e351bbf6
1 changed files with 2 additions and 0 deletions
|
@ -9607,6 +9607,8 @@ IF EXISTS (SELECT * FROM ResourceGroups WHERE GroupName = 'SharePoint')
|
||||||
BEGIN
|
BEGIN
|
||||||
DECLARE @group_id INT
|
DECLARE @group_id INT
|
||||||
SELECT @group_id = GroupId FROM ResourceGroups WHERE GroupName = 'SharePoint'
|
SELECT @group_id = GroupId FROM ResourceGroups WHERE GroupName = 'SharePoint'
|
||||||
|
DELETE FROM PackageQuotas WHERE QuotaID IN (SELECT QuotaID FROM Quotas WHERE GroupID = @group_id)
|
||||||
|
DELETE FROM HostingPlanQuotas WHERE QuotaID IN (SELECT QuotaID FROM Quotas WHERE GroupID = @group_id)
|
||||||
DELETE FROM Providers WHERE GroupID = @group_id
|
DELETE FROM Providers WHERE GroupID = @group_id
|
||||||
DELETE FROM Quotas WHERE GroupID = @group_id
|
DELETE FROM Quotas WHERE GroupID = @group_id
|
||||||
DELETE FROM VirtualGroups WHERE GroupID = @group_id
|
DELETE FROM VirtualGroups WHERE GroupID = @group_id
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue