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

PO-154 and PO-162 Abraham added scripts to insert development test da… #146

Merged
merged 1 commit into from
Jan 22, 2024
Merged
Show file tree
Hide file tree
Changes from all 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
Original file line number Diff line number Diff line change
@@ -0,0 +1,21 @@
/**
* CGI OPAL Program
*
* MODULE : modify_table_columns.sql
*
* DESCRIPTION : Change payments_in.till_id from SMALLINT to BIGINT to match what is in the tills table for the Fines model
* Change mis_debtors.account_number from Varchar(1) to Varchar(36) in the Fines model
*
* VERSION HISTORY:
*
* Date Author Version Nature of Change
* ---------- ------- -------- -------------------------------------------------------------------------------------------------------------
* 19/01/2024 A Dennis 1.0 PO-162 Change payments_in.till_id from SMALLINT to BIGINT to match what is in the tills table for the Fines model
* Change mis_debtors.account_number from Varchar(1) to Varchar(36) in the Fines model.
*
**/
ALTER TABLE payments_in
ALTER COLUMN till_id TYPE BIGINT;

ALTER TABLE mis_debtors
ALTER COLUMN account_number TYPE VARCHAR(36);
233 changes: 233 additions & 0 deletions src/main/resources/db/migration/V20240121_061__insert_documents.sql
Original file line number Diff line number Diff line change
@@ -0,0 +1,233 @@
/**
* OPAL Program
*
* MODULE : insert_documents.sql
*
* DESCRIPTION : Inserts rows of data into the DOCUMENTS table.
*
* VERSION HISTORY:
*
* Date Author Version Nature of Change
* ---------- ------- -------- ---------------------------------------------------------------------------------------------------------
* 21/01/2024 A Dennis 1.0 PO-147 Inserts rows of data into the DOCUMENTS table
*
**/
INSERT INTO documents
(
document_id
,recipient
,document_language
,signature_source
,priority
,header_type
,document_elements
)
VALUES
(
500000000
,'P'
,'EN'
,'Area'
,1
,'AP'
,'{"num_of_lines": 10,
"created_by": "Amanda Kesh"}'
);

INSERT INTO documents
(
document_id
,recipient
,document_language
,signature_source
,priority
,header_type
,document_elements
)
VALUES
(
500000001
,'P'
,'EN'
,'Area'
,1
,'AP'
,'{"num_of_lines": 11,
"created_by": "Bono Brul"}'
);

INSERT INTO documents
(
document_id
,recipient
,document_language
,signature_source
,priority
,header_type
,document_elements
)
VALUES
(
500000002
,'O'
,'EN'
,'LJA'
,2
,'EO'
,'{"num_of_lines": 12,
"created_by": "Izzy Can"}'
);

INSERT INTO documents
(
document_id
,recipient
,document_language
,signature_source
,priority
,header_type
,document_elements
)
VALUES
(
500000003
,'O'
,'EN'
,'LJA'
,3
,'MC'
,'{"num_of_lines": 103,
"created_by": "Donna Simms"}'
);

INSERT INTO documents
(
document_id
,recipient
,document_language
,signature_source
,priority
,header_type
,document_elements
)
VALUES
(
500000004
,'P'
,'EN'
,'Area'
,1
,'A'
,'{"num_of_lines": 14,
"created_by": "Kirsty Rimmes"}'
);

INSERT INTO documents
(
document_id
,recipient
,document_language
,signature_source
,priority
,header_type
,document_elements
)
VALUES
(
500000005
,'P'
,'CY'
,'Area'
,2
,'MC'
,'{"num_of_lines": 5,
"created_by": "Freda Gore"}'
);

INSERT INTO documents
(
document_id
,recipient
,document_language
,signature_source
,priority
,header_type
,document_elements
)
VALUES
(
500000006
,'P'
,'EN'
,'Area'
,2
,'MF'
,'{"num_of_lines": 16,
"created_by": "Tom Sonma"}'
);

INSERT INTO documents
(
document_id
,recipient
,document_language
,signature_source
,priority
,header_type
,document_elements
)
VALUES
(
500000007
,'P'
,'EN'
,'LJA'
,2
,'MA'
,'{"num_of_lines": 29,
"created_by": "Rod Bany"}'
);

INSERT INTO documents
(
document_id
,recipient
,document_language
,signature_source
,priority
,header_type
,document_elements
)
VALUES
(
500000008
,'P'
,'EN'
,'LJA'
,2
,'ME'
,'{"num_of_lines": 120,
"created_by": "Keisha Malley"}'
);

INSERT INTO documents
(
document_id
,recipient
,document_language
,signature_source
,priority
,header_type
,document_elements
)
VALUES
(
500000009
,'P'
,'EN'
,'LJA'
,3
,'MA'
,'{"num_of_lines": 67,
"created_by": "Tama Leito"}'
);
Loading