generated from bcgov/quickstart-openshift
-
Notifications
You must be signed in to change notification settings - Fork 4
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
feat: Add policy configuration db table (#1432)
Co-authored-by: praju-aot <[email protected]>
- Loading branch information
1 parent
5b10647
commit 4fc0d23
Showing
10 changed files
with
445 additions
and
10 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
43 changes: 43 additions & 0 deletions
43
database/mssql/scripts/versions/revert/v_29_ddl_revert.sql
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,43 @@ | ||
SET ANSI_NULLS ON | ||
GO | ||
SET QUOTED_IDENTIFIER ON | ||
GO | ||
SET NOCOUNT ON | ||
GO | ||
|
||
SET XACT_ABORT ON | ||
|
||
BEGIN TRY | ||
BEGIN TRANSACTION | ||
DROP TABLE [dbo].[ORBC_POLICY_CONFIGURATION_HIST] | ||
DROP TABLE [dbo].[ORBC_POLICY_CONFIGURATION] | ||
DROP SEQUENCE [dbo].[ORBC_POLICY_CONFIGURATION_H_ID_SEQ] | ||
|
||
DROP TRIGGER [permit].[ORBC_CFSTRDT_A_S_IUD_TR] | ||
DROP TABLE [permit].[ORBC_CFS_TRANSACTION_DETAIL_HIST] | ||
DROP SEQUENCE [permit].[ORBC_CFS_TRANSACTION_DETAIL_H_ID_SEQ] | ||
|
||
DROP TRIGGER [permit].[ORBC_CRACCACT_A_S_IUD_TR] | ||
DROP TABLE [permit].[ORBC_CREDIT_ACCOUNT_ACTIVITY_HIST] | ||
DROP SEQUENCE [permit].[ORBC_CREDIT_ACCOUNT_ACTIVITY_H_ID_SEQ] | ||
|
||
DROP TRIGGER [permit].[ORBC_CRACC_A_S_IUD_TR] | ||
DROP TABLE [permit].[ORBC_CREDIT_ACCOUNT_HIST] | ||
DROP SEQUENCE [permit].[ORBC_CREDIT_ACCOUNT_H_ID_SEQ] | ||
|
||
DROP TRIGGER [permit].[ORBC_CRACCUSR_A_S_IUD_TR] | ||
DROP TABLE [permit].[ORBC_CREDIT_ACCOUNT_USER_HIST] | ||
DROP SEQUENCE [permit].[ORBC_CREDIT_ACCOUNT_USER_H_ID_SEQ] | ||
COMMIT | ||
END TRY | ||
|
||
BEGIN CATCH | ||
IF @@TRANCOUNT > 0 | ||
ROLLBACK; | ||
THROW | ||
END CATCH | ||
|
||
DECLARE @VersionDescription VARCHAR(255) | ||
SET @VersionDescription = 'Reverting policy configuration table creation plus history tables for v28 and v27' | ||
|
||
INSERT [dbo].[ORBC_SYS_VERSION] ([VERSION_ID], [DESCRIPTION], [RELEASE_DATE]) VALUES (28, @VersionDescription, getutcdate()) |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Oops, something went wrong.