Skip to content

Commit

Permalink
PO-623 modified the DRAFT_ACCOUNTS table to add new column and rename… (
Browse files Browse the repository at this point in the history
#497)

* PO-623 modified the DRAFT_ACCOUNTS table to add new column and rename some columns and amended column descriptions

* PO-623 modified the DRAFT_ACCOUNTS table to add new column and rename some columns and amended column descriptions

* PO-623 DRAFT_ACCOUNTS table - Added new column, renamed some columns and amended some columns  descriptions
  • Loading branch information
abrahamdennis authored Aug 16, 2024
1 parent 92ef2cd commit bbd504b
Showing 1 changed file with 29 additions and 0 deletions.
Original file line number Diff line number Diff line change
@@ -0,0 +1,29 @@
/**
*
* OPAL Program
*
* MODULE : modify_draft_accounts.sql
*
* DESCRIPTION : Modified DRAFT_ACCOUNTS table with some new columns and renamed others.
*
* VERSION HISTORY:
*
* Date Author Version Nature of Change
* ---------- -------- -------- ------------------------------------------------------------------------------
* 16/08/2024 A Dennis 1.0 PO-623 Modified DRAFT_ACCOUNTS table with some new columns and renamed others.
*
**/

ALTER TABLE draft_accounts
RENAME COLUMN created_by TO submitted_by;

ALTER TABLE draft_accounts
RENAME COLUMN account_summary_data TO account_snapshot;

ALTER TABLE draft_accounts
ADD COLUMN account_number varchar(25);

COMMENT ON COLUMN draft_accounts.submitted_by IS 'ID of the user that last submitted this record for checking';
COMMENT ON COLUMN draft_accounts.account_number IS 'The Opal Account Number (2char letter code+account number)';
COMMENT ON COLUMN draft_accounts.account_id IS 'Account ID created on validation';
COMMENT ON COLUMN draft_accounts.created_date IS 'Date this record was first created (the created date is not updated by successive submits, only the submitted by)';

0 comments on commit bbd504b

Please sign in to comment.