-
Notifications
You must be signed in to change notification settings - Fork 3
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Added the ability to run liquibase locally as well as initial changes…
…ets for the DB Co-authored-by: Dylan <[email protected]> Co-authored-by: Chris Preston <[email protected]> Co-authored-by: hsaldyga <[email protected]>
- Loading branch information
1 parent
272192c
commit 9d5e424
Showing
22 changed files
with
1,307 additions
and
6 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
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -2,4 +2,6 @@ | |
/.vscode | ||
/.idea | ||
/.mvn | ||
/.sonarlint | ||
/.sonarlint | ||
**/.env | ||
**/.env.* |
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
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
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,4 @@ | ||
FROM liquibase/liquibase | ||
ADD . /liquibase | ||
EXPOSE 8080 | ||
USER root |
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
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
1 change: 1 addition & 0 deletions
1
db/scripts/01_00_00/01/ddl/extension/wfprev.ddl.add_trigram.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 @@ | ||
CREATE EXTENSION IF NOT EXISTS pg_trgm; |
1 change: 1 addition & 0 deletions
1
db/scripts/01_00_01/00/ddl/sequences/PREV.prev_audit_table_seq.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 @@ | ||
CREATE SEQUENCE "wfprev"."prev_audit_table_seq" INCREMENT BY 1 START WITH 1 MAXVALUE 9999999999 MINVALUE 1 NO CYCLE; |
75 changes: 75 additions & 0 deletions
75
db/scripts/01_00_01/00/ddl/tables/WFPREV.forest_area_code.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,75 @@ | ||
/* ---------------------------------------------------- */ | ||
/* Generated by Enterprise Architect Version 12.0 */ | ||
/* Created On : 12-Nov-2024 4:34:03 PM */ | ||
/* DBMS : PostgreSQL */ | ||
/* ---------------------------------------------------- */ | ||
|
||
/* Create Tables */ | ||
|
||
CREATE TABLE "wfprev"."forest_area_code" | ||
( | ||
"forest_area_code" varchar(10) NOT NULL, -- forest_area_code: Forest Area Code is a list of Ministry Forest Areas Values are: - Coast - North - West | ||
"description" varchar(200) NOT NULL, -- DESCRIPTION is the display quality description of the code value. | ||
"display_order" decimal(3) NULL, -- DISPLAY ORDER is to allow non alphabetic sorting e.g. M T W Th F S S. | ||
"effective_date" DATE NOT NULL DEFAULT CURRENT_DATE, -- EFFECTIVE_DATE is the date code value becomes effective. | ||
"expiry_date" DATE NOT NULL DEFAULT '9999-12-31', -- EXPIRY_DATE is the date code value expires. | ||
"revision_count" decimal(10) NOT NULL DEFAULT 0, -- REVISION_COUNT is the number of times that the row of data has been changed. The column is used for optimistic locking via application code. | ||
"create_user" varchar(64) NOT NULL, -- CREATE_USER is an audit column that indicates the user that created the record. | ||
"create_date" DATE NOT NULL DEFAULT CURRENT_TIMESTAMP, -- CREATE_DATE is the date and time the row of data was created. | ||
"update_user" varchar(64) NOT NULL, -- UPDATE_USER is an audit column that indicates the user that updated the record. | ||
"update_date" DATE NOT NULL DEFAULT CURRENT_TIMESTAMP -- UPDATE_DATE is the date and time the row of data was updated. | ||
) | ||
TABLESPACE PG_DEFAULT | ||
; | ||
|
||
/* Create Table Comments, Sequences for Autonumber Columns */ | ||
|
||
COMMENT ON TABLE "wfprev"."forest_area_code" | ||
IS 'Forest Area Code is a list of Ministry Forest Areas Values are: - Coast - North - West' | ||
; | ||
|
||
COMMENT ON COLUMN "wfprev"."forest_area_code"."forest_area_code" | ||
IS 'forest_area_code: Forest Area Code is a list of Ministry Forest Areas Values are: - Coast - North - West' | ||
; | ||
|
||
COMMENT ON COLUMN "wfprev"."forest_area_code"."description" | ||
IS 'DESCRIPTION is the display quality description of the code value.' | ||
; | ||
|
||
COMMENT ON COLUMN "wfprev"."forest_area_code"."display_order" | ||
IS 'DISPLAY ORDER is to allow non alphabetic sorting e.g. M T W Th F S S.' | ||
; | ||
|
||
COMMENT ON COLUMN "wfprev"."forest_area_code"."effective_date" | ||
IS 'EFFECTIVE_DATE is the date code value becomes effective.' | ||
; | ||
|
||
COMMENT ON COLUMN "wfprev"."forest_area_code"."expiry_date" | ||
IS 'EXPIRY_DATE is the date code value expires.' | ||
; | ||
|
||
COMMENT ON COLUMN "wfprev"."forest_area_code"."revision_count" | ||
IS 'REVISION_COUNT is the number of times that the row of data has been changed. The column is used for optimistic locking via application code.' | ||
; | ||
|
||
COMMENT ON COLUMN "wfprev"."forest_area_code"."create_user" | ||
IS 'CREATE_USER is an audit column that indicates the user that created the record.' | ||
; | ||
|
||
COMMENT ON COLUMN "wfprev"."forest_area_code"."create_date" | ||
IS 'CREATE_DATE is the date and time the row of data was created.' | ||
; | ||
|
||
COMMENT ON COLUMN "wfprev"."forest_area_code"."update_user" | ||
IS 'UPDATE_USER is an audit column that indicates the user that updated the record.' | ||
; | ||
|
||
COMMENT ON COLUMN "wfprev"."forest_area_code"."update_date" | ||
IS 'UPDATE_DATE is the date and time the row of data was updated.' | ||
; | ||
|
||
/* Create Primary Keys, Indexes, Uniques, Checks */ | ||
|
||
ALTER TABLE "wfprev"."forest_area_code" ADD CONSTRAINT "facd_pk" | ||
PRIMARY KEY ("forest_area_code") | ||
; |
75 changes: 75 additions & 0 deletions
75
db/scripts/01_00_01/00/ddl/tables/WFPREV.general_scope_code.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,75 @@ | ||
/* ---------------------------------------------------- */ | ||
/* Generated by Enterprise Architect Version 12.0 */ | ||
/* Created On : 12-Nov-2024 4:35:05 PM */ | ||
/* DBMS : PostgreSQL */ | ||
/* ---------------------------------------------------- */ | ||
|
||
/* Create Tables */ | ||
|
||
CREATE TABLE "wfprev"."general_scope_code" | ||
( | ||
"general_scope_code" varchar(10) NOT NULL, -- general_scope_code: General Scope Code is the set of high level scopes a project may have. Values are: - Landscape Level Activities - Site Level Activities - Non-Spatial Activities | ||
"description" varchar(200) NOT NULL, -- DESCRIPTION is the display quality description of the code value. | ||
"display_order" decimal(3) NULL, -- DISPLAY ORDER is to allow non alphabetic sorting e.g. M T W Th F S S. | ||
"effective_date" DATE NOT NULL DEFAULT CURRENT_DATE, -- EFFECTIVE_DATE is the date code value becomes effective. | ||
"expiry_date" DATE NOT NULL DEFAULT '9999-12-31', -- EXPIRY_DATE is the date code value expires. | ||
"revision_count" decimal(10) NOT NULL DEFAULT 0, -- REVISION_COUNT is the number of times that the row of data has been changed. The column is used for optimistic locking via application code. | ||
"create_user" varchar(64) NOT NULL, -- CREATE_USER is an audit column that indicates the user that created the record. | ||
"create_date" DATE NOT NULL DEFAULT CURRENT_TIMESTAMP, -- CREATE_DATE is the date and time the row of data was created. | ||
"update_user" varchar(64) NOT NULL, -- UPDATE_USER is an audit column that indicates the user that updated the record. | ||
"update_date" DATE NOT NULL DEFAULT CURRENT_TIMESTAMP -- UPDATE_DATE is the date and time the row of data was updated. | ||
) | ||
TABLESPACE PG_DEFAULT | ||
; | ||
|
||
/* Create Table Comments, Sequences for Autonumber Columns */ | ||
|
||
COMMENT ON TABLE "wfprev"."general_scope_code" | ||
IS 'General Scope Code is the set of high level scopes a project may have. Values are: - Landscape Level Activities - Site Level Activities - Non-Spatial Activities' | ||
; | ||
|
||
COMMENT ON COLUMN "wfprev"."general_scope_code"."general_scope_code" | ||
IS 'general_scope_code: General Scope Code is the set of high level scopes a project may have. Values are: - Landscape Level Activities - Site Level Activities - Non-Spatial Activities' | ||
; | ||
|
||
COMMENT ON COLUMN "wfprev"."general_scope_code"."description" | ||
IS 'DESCRIPTION is the display quality description of the code value.' | ||
; | ||
|
||
COMMENT ON COLUMN "wfprev"."general_scope_code"."display_order" | ||
IS 'DISPLAY ORDER is to allow non alphabetic sorting e.g. M T W Th F S S.' | ||
; | ||
|
||
COMMENT ON COLUMN "wfprev"."general_scope_code"."effective_date" | ||
IS 'EFFECTIVE_DATE is the date code value becomes effective.' | ||
; | ||
|
||
COMMENT ON COLUMN "wfprev"."general_scope_code"."expiry_date" | ||
IS 'EXPIRY_DATE is the date code value expires.' | ||
; | ||
|
||
COMMENT ON COLUMN "wfprev"."general_scope_code"."revision_count" | ||
IS 'REVISION_COUNT is the number of times that the row of data has been changed. The column is used for optimistic locking via application code.' | ||
; | ||
|
||
COMMENT ON COLUMN "wfprev"."general_scope_code"."create_user" | ||
IS 'CREATE_USER is an audit column that indicates the user that created the record.' | ||
; | ||
|
||
COMMENT ON COLUMN "wfprev"."general_scope_code"."create_date" | ||
IS 'CREATE_DATE is the date and time the row of data was created.' | ||
; | ||
|
||
COMMENT ON COLUMN "wfprev"."general_scope_code"."update_user" | ||
IS 'UPDATE_USER is an audit column that indicates the user that updated the record.' | ||
; | ||
|
||
COMMENT ON COLUMN "wfprev"."general_scope_code"."update_date" | ||
IS 'UPDATE_DATE is the date and time the row of data was updated.' | ||
; | ||
|
||
/* Create Primary Keys, Indexes, Uniques, Checks */ | ||
|
||
ALTER TABLE "wfprev"."general_scope_code" ADD CONSTRAINT "prjcd_pk" | ||
PRIMARY KEY ("general_scope_code") | ||
; |
Oops, something went wrong.