Skip to content

Commit

Permalink
uninstall failures
Browse files Browse the repository at this point in the history
  • Loading branch information
William Durkin committed Dec 8, 2017
1 parent d0fee59 commit 4d72c17
Showing 1 changed file with 16 additions and 0 deletions.
16 changes: 16 additions & 0 deletions setup/uninstall_open_query_store.sql
Original file line number Diff line number Diff line change
Expand Up @@ -88,6 +88,14 @@ IF EXISTS ( SELECT *
BEGIN
DROP PROC [oqs].[data_cleanup];
END;

IF EXISTS ( SELECT *
FROM [sys].[procedures] AS [P]
WHERE [P].[object_id] = OBJECT_ID( N'[oqs].[exclude_query_from_dashboard]' )
)
BEGIN
DROP PROC [oqs].[exclude_query_from_dashboard];
END;

IF EXISTS ( SELECT *
FROM [sys].[tables] AS [T]
Expand Down Expand Up @@ -137,6 +145,14 @@ IF EXISTS ( SELECT *
DROP TABLE [oqs].[activity_log];
END;

IF EXISTS ( SELECT *
FROM [sys].[tables] AS [T]
WHERE [T].[object_id] = OBJECT_ID( N'[oqs].[excluded_queries]' )
)
BEGIN
DROP TABLE [oqs].[excluded_queries];
END;

IF EXISTS ( SELECT *
FROM [sys].[tables] AS [T]
WHERE [T].[object_id] = OBJECT_ID( N'[oqs].[plan_dbid]' )
Expand Down

0 comments on commit 4d72c17

Please sign in to comment.