generated from hmcts/spring-boot-template
-
Notifications
You must be signed in to change notification settings - Fork 0
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
PO-641 add new column originator_id and remove column originator_refe…
…rence (#502) Co-authored-by: Cade Faulkner <147704481+CadeFaulkner@users.noreply.github.com>
- Loading branch information
1 parent
ab070ae
commit cdf54d8
Showing
3 changed files
with
27 additions
and
4 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
23 changes: 23 additions & 0 deletions
23
src/main/resources/db/migration/V20240820_233__modify_defendant_accounts.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,23 @@ | ||
/** | ||
* | ||
* OPAL Program | ||
* | ||
* MODULE : modify_defendant_accounts.sql | ||
* | ||
* DESCRIPTION : Modified DEFENDANT_ACCOUNTS table to add originator_id column and drop originator_reference column. | ||
* | ||
* VERSION HISTORY: | ||
* | ||
* Date Author Version Nature of Change | ||
* ---------- -------- -------- ---------------------------------------------------------------------------------------------------------- | ||
* 20/08/2024 A Dennis 1.0 PO-641 Modified DEFENDANT_ACCOUNTS table to add originator_id column and drop originator_reference column. | ||
* | ||
**/ | ||
|
||
ALTER TABLE defendant_accounts | ||
DROP COLUMN IF EXISTS originator_reference; | ||
|
||
ALTER TABLE defendant_accounts | ||
ADD COLUMN originator_id varchar(40); | ||
|
||
COMMENT ON COLUMN defendant_accounts.originator_id IS 'ID of the Originator'; |
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