Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

ORV22-2637 DB Model for Case Managements /Queue - First Draft #1544

Merged
merged 18 commits into from
Sep 9, 2024
Merged
Show file tree
Hide file tree
Changes from 9 commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
45 changes: 45 additions & 0 deletions database/mssql/scripts/versions/revert/v_42_ddl_revert.sql
Original file line number Diff line number Diff line change
@@ -0,0 +1,45 @@
SET ANSI_NULLS ON
GO
SET QUOTED_IDENTIFIER ON
GO
SET NOCOUNT ON
GO

SET XACT_ABORT ON

BEGIN TRY
BEGIN TRANSACTION
DROP TABLE [case].[ORBC_CASE_DOCUMENT_HIST]
DROP TABLE [case].[ORBC_CASE_DOCUMENT]
DROP SEQUENCE [case].[ORBC_CASE_DOCUMENT_H_ID_SEQ]
DROP TABLE [case].[ORBC_CASE_ACTIVITY_HIST]
DROP TABLE [case].[ORBC_CASE_ACTIVITY]
DROP SEQUENCE [case].[ORBC_CASE_ACTIVITY_H_ID_SEQ]
DROP TABLE [case].[ORBC_CASE_NOTES_HIST]
DROP TABLE [case].[ORBC_CASE_NOTES]
DROP SEQUENCE [case].[ORBC_CASE_NOTES_H_ID_SEQ]
DROP TABLE [case].[ORBC_CASE_ACTIVITY_TYPE]
DROP TABLE [case].[ORBC_CASE_EVENT_HIST]
DROP TABLE [case].[ORBC_CASE_EVENT]
DROP SEQUENCE [case].[ORBC_CASE_EVENT_H_ID_SEQ]
DROP TABLE [case].[ORBC_CASE_EVENT_TYPE]
DROP TABLE [case].[ORBC_CASE_HIST]
DROP TABLE [case].[ORBC_CASE]
DROP SEQUENCE [case].[ORBC_CASE_H_ID_SEQ]
DROP TABLE [case].[ORBC_CASE_TYPE]
DROP TABLE [case].[ORBC_CASE_STATUS_TYPE]
DROP SCHEMA [case]
DELETE FROM [permit].[ORBC_PERMIT_STATUS_TYPE] WHERE [PERMIT_STATUS_TYPE] ='IN_QUEUE'
COMMIT
END TRY

BEGIN CATCH
IF @@TRANCOUNT > 0
ROLLBACK;
THROW
END CATCH

DECLARE @VersionDescription VARCHAR(255)
SET @VersionDescription = 'Revert Case/Queue management and related Db objects'

INSERT [dbo].[ORBC_SYS_VERSION] ([VERSION_ID], [DESCRIPTION], [RELEASE_DATE]) VALUES (41, @VersionDescription, getutcdate())
1 change: 0 additions & 1 deletion database/mssql/scripts/versions/v_40_ddl.sql
Original file line number Diff line number Diff line change
Expand Up @@ -102,4 +102,3 @@ BEGIN
END
GO


Loading
Loading