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
- Loading branch information
1 parent
6ff6849
commit 31128c8
Showing
1 changed file
with
23 additions
and
0 deletions.
There are no files selected for viewing
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'; |