Skip to content

Commit 612b97c

Browse files
committed
WFPREV-503, WFPREV-505
1 parent fc7eb1d commit 612b97c

13 files changed

+1101
-22
lines changed

db/app_wf1_prev-changelog.json

Lines changed: 71 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1286,6 +1286,77 @@
12861286
"rollback": [
12871287
]
12881288
}
1289+
},
1290+
{
1291+
"changeSet": {
1292+
"id": "01_00_23_00",
1293+
"author": "hsaldyga",
1294+
"tagDatabase": { "tag": "version_01_00_23_00" },
1295+
"changes": [
1296+
{
1297+
"sqlFile": {
1298+
"dbms": "postgresql", "endDelimiter": ";",
1299+
"path": "scripts/01_00_23/00/dml/app_wf1_rm.dml.update_project_plan_fiscal_code.sql"
1300+
}
1301+
},
1302+
{
1303+
"sqlFile": {
1304+
"dbms": "postgresql", "endDelimiter": ";",
1305+
"path": "scripts/01_00_23/00/ddl/WFPREV.eval_criteria_sect_code.sql"
1306+
}
1307+
},
1308+
{
1309+
"sqlFile": {
1310+
"dbms": "postgresql", "endDelimiter": ";",
1311+
"path": "scripts/01_00_23/00/ddl/WFPREV.evaluation_criteria.sql"
1312+
}
1313+
},
1314+
{
1315+
"sqlFile": {
1316+
"dbms": "postgresql", "endDelimiter": ";",
1317+
"path": "scripts/01_00_23/00/ddl/WFPREV.eval_criteria_summary.sql"
1318+
}
1319+
},
1320+
{
1321+
"sqlFile": {
1322+
"dbms": "postgresql", "endDelimiter": ";",
1323+
"path": "scripts/01_00_23/00/ddl/WFPREV.eval_criteria_sect_summ.sql"
1324+
}
1325+
},
1326+
{
1327+
"sqlFile": {
1328+
"dbms": "postgresql", "endDelimiter": ";",
1329+
"path": "scripts/01_00_23/00/ddl/WFPREV.eval_criteria_selected.sql"
1330+
}
1331+
},
1332+
{
1333+
"sqlFile": {
1334+
"dbms": "postgresql", "endDelimiter": ";",
1335+
"path": "scripts/01_00_23/00/ddl/app_wf1_prev.ddl.apply_grants.sql"
1336+
}
1337+
},
1338+
{
1339+
"sqlFile": {
1340+
"dbms": "postgresql", "endDelimiter": ";",
1341+
"path": "scripts/01_00_23/00/ddl/app_wf1_prev.ddl.drop_deprecated_tables.sql"
1342+
}
1343+
},
1344+
{
1345+
"sqlFile": {
1346+
"dbms": "postgresql", "endDelimiter": ";",
1347+
"path": "scripts/01_00_23/00/dml/app_wf1_prev.dml.load_eval_criteria_sect_code.sql"
1348+
}
1349+
},
1350+
{
1351+
"sqlFile": {
1352+
"dbms": "postgresql", "endDelimiter": ";",
1353+
"path": "scripts/01_00_23/00/dml/app_wf1_prev.dml.load_project_objectives.sql"
1354+
}
1355+
}
1356+
],
1357+
"rollback": [
1358+
]
1359+
}
12891360
}
12901361
]
12911362
}

db/scripts/01_00_21/00/ddl/app_wf1_prev.ddl.alter_role_password.sql

Lines changed: 0 additions & 3 deletions
This file was deleted.
Lines changed: 75 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,75 @@
1+
/* ---------------------------------------------------- */
2+
/* Generated by Enterprise Architect Version 12.0 */
3+
/* Created On : 25-Jun-2025 3:20:36 PM */
4+
/* DBMS : PostgreSQL */
5+
/* ---------------------------------------------------- */
6+
7+
/* Create Tables */
8+
9+
CREATE TABLE "wfprev"."eval_criteria_sect_code"
10+
(
11+
"eval_criteria_sect_code" varchar(10) NOT NULL, -- eval_criteria_sect_code: Objective Filter Level Code defines a set of filter levels that an objective can be defined for: Values are: - Coarse Filter - Medium Filter - Fine Filter - Risk Class & Location - Burn Development and Feasibility - Collective Impact
12+
"description" varchar(200) NOT NULL, -- DESCRIPTION is the display quality description of the code value.
13+
"display_order" decimal(3) NULL, -- DISPLAY ORDER is to allow non alphabetic sorting e.g. M T W Th F S S.
14+
"effective_date" DATE NOT NULL DEFAULT CURRENT_DATE, -- EFFECTIVE_DATE is the date code value becomes effective.
15+
"expiry_date" DATE NOT NULL DEFAULT '9999-12-31', -- EXPIRY_DATE is the date code value expires.
16+
"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.
17+
"create_user" varchar(64) NOT NULL, -- CREATE_USER is an audit column that indicates the user that created the record.
18+
"create_date" DATE NOT NULL DEFAULT CURRENT_TIMESTAMP, -- CREATE_DATE is the date and time the row of data was created.
19+
"update_user" varchar(64) NOT NULL, -- UPDATE_USER is an audit column that indicates the user that updated the record.
20+
"update_date" DATE NOT NULL DEFAULT CURRENT_TIMESTAMP -- UPDATE_DATE is the date and time the row of data was updated.
21+
)
22+
TABLESPACE PG_DEFAULT
23+
;
24+
25+
/* Create Table Comments, Sequences for Autonumber Columns */
26+
27+
COMMENT ON TABLE "wfprev"."eval_criteria_sect_code"
28+
IS 'Objective Filter Level Code defines a set of filter levels that an objective can be defined for: Values are: - Coarse Filter - Medium Filter - Fine Filter - Risk Class & Location - Burn Development and Feasibility - Collective Impact'
29+
;
30+
31+
COMMENT ON COLUMN "wfprev"."eval_criteria_sect_code"."eval_criteria_sect_code"
32+
IS 'eval_criteria_sect_code: Objective Filter Level Code defines a set of filter levels that an objective can be defined for: Values are: - Coarse Filter - Medium Filter - Fine Filter - Risk Class & Location - Burn Development and Feasibility - Collective Impact'
33+
;
34+
35+
COMMENT ON COLUMN "wfprev"."eval_criteria_sect_code"."description"
36+
IS 'DESCRIPTION is the display quality description of the code value.'
37+
;
38+
39+
COMMENT ON COLUMN "wfprev"."eval_criteria_sect_code"."display_order"
40+
IS 'DISPLAY ORDER is to allow non alphabetic sorting e.g. M T W Th F S S.'
41+
;
42+
43+
COMMENT ON COLUMN "wfprev"."eval_criteria_sect_code"."effective_date"
44+
IS 'EFFECTIVE_DATE is the date code value becomes effective.'
45+
;
46+
47+
COMMENT ON COLUMN "wfprev"."eval_criteria_sect_code"."expiry_date"
48+
IS 'EXPIRY_DATE is the date code value expires.'
49+
;
50+
51+
COMMENT ON COLUMN "wfprev"."eval_criteria_sect_code"."revision_count"
52+
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.'
53+
;
54+
55+
COMMENT ON COLUMN "wfprev"."eval_criteria_sect_code"."create_user"
56+
IS 'CREATE_USER is an audit column that indicates the user that created the record.'
57+
;
58+
59+
COMMENT ON COLUMN "wfprev"."eval_criteria_sect_code"."create_date"
60+
IS 'CREATE_DATE is the date and time the row of data was created.'
61+
;
62+
63+
COMMENT ON COLUMN "wfprev"."eval_criteria_sect_code"."update_user"
64+
IS 'UPDATE_USER is an audit column that indicates the user that updated the record.'
65+
;
66+
67+
COMMENT ON COLUMN "wfprev"."eval_criteria_sect_code"."update_date"
68+
IS 'UPDATE_DATE is the date and time the row of data was updated.'
69+
;
70+
71+
/* Create Primary Keys, Indexes, Uniques, Checks */
72+
73+
ALTER TABLE "wfprev"."eval_criteria_sect_code" ADD CONSTRAINT "ecscd_pk"
74+
PRIMARY KEY ("eval_criteria_sect_code")
75+
;
Lines changed: 94 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,94 @@
1+
/* ---------------------------------------------------- */
2+
/* Generated by Enterprise Architect Version 12.0 */
3+
/* Created On : 25-Jun-2025 3:35:24 PM */
4+
/* DBMS : PostgreSQL */
5+
/* ---------------------------------------------------- */
6+
7+
/* Create Tables */
8+
9+
CREATE TABLE "wfprev"."eval_criteria_sect_summ"
10+
(
11+
"eval_criteria_sect_summ_guid" UUID NOT NULL, -- eval_criteria_sect_summ_guid is a unique identifier for the record.
12+
"eval_criteria_sect_code" varchar(10) NOT NULL, -- eval_criteria_sect_code: Is a foreign key to eval_criteria_sect_code: Objective Filter Level Code defines a set of filter levels that an objective can be defined for: Values are: - Coarse Filter - Medium Filter - Fine Filter - Risk Class & Location - Burn Development and Feasibility - Collective Impact
13+
"eval_criteria_summary_guid" UUID NOT NULL, -- eval_criteria_summary_guid: Is a foreign key to eval_criteria_summary: Evaluation Criteria Summary summarizes project filters which are used to evaluate criteria to be accomplished by a project. Evaluation criteria filters are used to rank and prioritize projects.
14+
"filter_section_score" decimal(6,2) NOT NULL, -- Filter Section Score is a score calculated by summing the weighted ranks of evaluation criteria that are selected as being aligned for the project.
15+
"filter_section_comment" varchar(4000) NULL, -- Filter Section Comment contains the rationale or additional comments regarding the filter section for the project.
16+
"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.
17+
"create_user" varchar(64) NOT NULL, -- CREATE_USER is an audit column that indicates the user that created the record.
18+
"create_date" DATE NOT NULL DEFAULT CURRENT_TIMESTAMP, -- CREATE_DATE is the date and time the row of data was created.
19+
"update_user" varchar(64) NOT NULL, -- UPDATE_USER is an audit column that indicates the user that updated the record.
20+
"update_date" DATE NOT NULL DEFAULT CURRENT_TIMESTAMP -- UPDATE_DATE is the date and time the row of data was updated.
21+
)
22+
TABLESPACE PG_DEFAULT
23+
;
24+
25+
/* Create Table Comments, Sequences for Autonumber Columns */
26+
27+
COMMENT ON TABLE "wfprev"."eval_criteria_sect_summ"
28+
IS 'Evaluation Criteria Section Summary is a summary of details for a evaluation criteria section, such as the total scores for the section.'
29+
;
30+
31+
COMMENT ON COLUMN "wfprev"."eval_criteria_sect_summ"."eval_criteria_sect_summ_guid"
32+
IS 'eval_criteria_sect_summ_guid is a unique identifier for the record.'
33+
;
34+
35+
COMMENT ON COLUMN "wfprev"."eval_criteria_sect_summ"."eval_criteria_sect_code"
36+
IS 'eval_criteria_sect_code: Is a foreign key to eval_criteria_sect_code: Objective Filter Level Code defines a set of filter levels that an objective can be defined for: Values are: - Coarse Filter - Medium Filter - Fine Filter - Risk Class & Location - Burn Development and Feasibility - Collective Impact'
37+
;
38+
39+
COMMENT ON COLUMN "wfprev"."eval_criteria_sect_summ"."eval_criteria_summary_guid"
40+
IS 'eval_criteria_summary_guid: Is a foreign key to eval_criteria_summary: Evaluation Criteria Summary summarizes project filters which are used to evaluate criteria to be accomplished by a project. Evaluation criteria filters are used to rank and prioritize projects.'
41+
;
42+
43+
COMMENT ON COLUMN "wfprev"."eval_criteria_sect_summ"."filter_section_score"
44+
IS 'Filter Section Score is a score calculated by summing the weighted ranks of evaluation criteria that are selected as being aligned for the project.'
45+
;
46+
47+
COMMENT ON COLUMN "wfprev"."eval_criteria_sect_summ"."filter_section_comment"
48+
IS 'Filter Section Comment contains the rationale or additional comments regarding the filter section for the project.'
49+
;
50+
51+
COMMENT ON COLUMN "wfprev"."eval_criteria_sect_summ"."revision_count"
52+
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.'
53+
;
54+
55+
COMMENT ON COLUMN "wfprev"."eval_criteria_sect_summ"."create_user"
56+
IS 'CREATE_USER is an audit column that indicates the user that created the record.'
57+
;
58+
59+
COMMENT ON COLUMN "wfprev"."eval_criteria_sect_summ"."create_date"
60+
IS 'CREATE_DATE is the date and time the row of data was created.'
61+
;
62+
63+
COMMENT ON COLUMN "wfprev"."eval_criteria_sect_summ"."update_user"
64+
IS 'UPDATE_USER is an audit column that indicates the user that updated the record.'
65+
;
66+
67+
COMMENT ON COLUMN "wfprev"."eval_criteria_sect_summ"."update_date"
68+
IS 'UPDATE_DATE is the date and time the row of data was updated.'
69+
;
70+
71+
/* Create Primary Keys, Indexes, Uniques, Checks */
72+
73+
ALTER TABLE "wfprev"."eval_criteria_sect_summ" ADD CONSTRAINT "ecsum_pk"
74+
PRIMARY KEY ("eval_criteria_sect_summ_guid")
75+
;
76+
77+
ALTER TABLE "wfprev"."eval_criteria_sect_summ" ADD CONSTRAINT "ecsum_uk" UNIQUE ("eval_criteria_sect_code","eval_criteria_summary_guid")
78+
;
79+
80+
CREATE INDEX "ecsum_ecscd_idx" ON "wfprev"."eval_criteria_sect_summ" ("eval_criteria_sect_code" ASC)
81+
;
82+
83+
CREATE INDEX "ecsum_ecpsum_idx" ON "wfprev"."eval_criteria_sect_summ" ("eval_criteria_summary_guid" ASC)
84+
;
85+
86+
/* Create Foreign Key Constraints */
87+
88+
ALTER TABLE "wfprev"."eval_criteria_sect_summ" ADD CONSTRAINT "ecsum_ecscd_fk"
89+
FOREIGN KEY ("eval_criteria_sect_code") REFERENCES "wfprev"."eval_criteria_sect_code" ("eval_criteria_sect_code") ON DELETE No Action ON UPDATE No Action
90+
;
91+
92+
ALTER TABLE "wfprev"."eval_criteria_sect_summ" ADD CONSTRAINT "ecsum_ecpsum_fk"
93+
FOREIGN KEY ("eval_criteria_summary_guid") REFERENCES "wfprev"."eval_criteria_summary" ("eval_criteria_summary_guid") ON DELETE No Action ON UPDATE No Action
94+
;
Lines changed: 89 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,89 @@
1+
/* ---------------------------------------------------- */
2+
/* Generated by Enterprise Architect Version 12.0 */
3+
/* Created On : 25-Jun-2025 3:35:24 PM */
4+
/* DBMS : PostgreSQL */
5+
/* ---------------------------------------------------- */
6+
7+
/* Create Tables */
8+
9+
CREATE TABLE "wfprev"."eval_criteria_selected"
10+
(
11+
"eval_criteria_selected_guid" UUID NOT NULL, -- eval_criteria_selected_guid is a unique identifier for the record.
12+
"evaluation_criteria_guid" UUID NOT NULL, -- evaluation_criteria_guid: Is a foreign key to evaluation_criteria:
13+
"eval_criteria_sect_summ_guid" UUID NOT NULL, -- eval_criteria_sect_summ_guid: Is a foreign key to eval_criteria_sect_summ: Evaluation Criteria Section Summary is a summary of details for a evaluation criteria section, such as the total scores for the section.
14+
"evaluation_criteria_select_ind" boolean NOT NULL DEFAULT 'N', -- Evaluation Criteria Selected Ind indicates whether the criteria mapped to the project evaluation criteria is selected (Y) or not (N). If true then the weighted rank of the criteria will count against the filter score. If false then a value of 0 will be counted against the filter score.
15+
"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.
16+
"create_user" varchar(64) NOT NULL, -- CREATE_USER is an audit column that indicates the user that created the record.
17+
"create_date" DATE NOT NULL DEFAULT CURRENT_TIMESTAMP, -- CREATE_DATE is the date and time the row of data was created.
18+
"update_user" varchar(64) NOT NULL, -- UPDATE_USER is an audit column that indicates the user that updated the record.
19+
"update_date" DATE NOT NULL DEFAULT CURRENT_TIMESTAMP -- UPDATE_DATE is the date and time the row of data was updated.
20+
)
21+
TABLESPACE PG_DEFAULT
22+
;
23+
24+
/* Create Table Comments, Sequences for Autonumber Columns */
25+
26+
COMMENT ON TABLE "wfprev"."eval_criteria_selected"
27+
IS 'Evaluation Criteria Selected is used to track whether evaluation criteria is selected or not for a evaluation criteria project summary'
28+
;
29+
30+
COMMENT ON COLUMN "wfprev"."eval_criteria_selected"."eval_criteria_selected_guid"
31+
IS 'eval_criteria_selected_guid is a unique identifier for the record.'
32+
;
33+
34+
COMMENT ON COLUMN "wfprev"."eval_criteria_selected"."evaluation_criteria_guid"
35+
IS 'evaluation_criteria_guid: Is a foreign key to evaluation_criteria: '
36+
;
37+
38+
COMMENT ON COLUMN "wfprev"."eval_criteria_selected"."eval_criteria_sect_summ_guid"
39+
IS 'eval_criteria_sect_summ_guid: Is a foreign key to eval_criteria_sect_summ: Evaluation Criteria Section Summary is a summary of details for a evaluation criteria section, such as the total scores for the section.'
40+
;
41+
42+
COMMENT ON COLUMN "wfprev"."eval_criteria_selected"."evaluation_criteria_select_ind"
43+
IS 'Evaluation Criteria Selected Ind indicates whether the criteria mapped to the project evaluation criteria is selected (Y) or not (N). If true then the weighted rank of the criteria will count against the filter score. If false then a value of 0 will be counted against the filter score.'
44+
;
45+
46+
COMMENT ON COLUMN "wfprev"."eval_criteria_selected"."revision_count"
47+
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.'
48+
;
49+
50+
COMMENT ON COLUMN "wfprev"."eval_criteria_selected"."create_user"
51+
IS 'CREATE_USER is an audit column that indicates the user that created the record.'
52+
;
53+
54+
COMMENT ON COLUMN "wfprev"."eval_criteria_selected"."create_date"
55+
IS 'CREATE_DATE is the date and time the row of data was created.'
56+
;
57+
58+
COMMENT ON COLUMN "wfprev"."eval_criteria_selected"."update_user"
59+
IS 'UPDATE_USER is an audit column that indicates the user that updated the record.'
60+
;
61+
62+
COMMENT ON COLUMN "wfprev"."eval_criteria_selected"."update_date"
63+
IS 'UPDATE_DATE is the date and time the row of data was updated.'
64+
;
65+
66+
/* Create Primary Keys, Indexes, Uniques, Checks */
67+
68+
ALTER TABLE "wfprev"."eval_criteria_selected" ADD CONSTRAINT "ecsel_pk"
69+
PRIMARY KEY ("eval_criteria_selected_guid")
70+
;
71+
72+
ALTER TABLE "wfprev"."eval_criteria_selected" ADD CONSTRAINT "ecsel_uk" UNIQUE ("evaluation_criteria_guid","eval_criteria_sect_summ_guid")
73+
;
74+
75+
CREATE INDEX "ecsel_evcrit_idx" ON "wfprev"."eval_criteria_selected" ("evaluation_criteria_guid" ASC)
76+
;
77+
78+
CREATE INDEX "ecsel_ecsum_idx" ON "wfprev"."eval_criteria_selected" ("eval_criteria_sect_summ_guid" ASC)
79+
;
80+
81+
/* Create Foreign Key Constraints */
82+
83+
ALTER TABLE "wfprev"."eval_criteria_selected" ADD CONSTRAINT "ecsel_evcrit_fk"
84+
FOREIGN KEY ("evaluation_criteria_guid") REFERENCES "wfprev"."evaluation_criteria" ("evaluation_criteria_guid") ON DELETE No Action ON UPDATE No Action
85+
;
86+
87+
ALTER TABLE "wfprev"."eval_criteria_selected" ADD CONSTRAINT "ecsel_ecsum_fk"
88+
FOREIGN KEY ("eval_criteria_sect_summ_guid") REFERENCES "wfprev"."eval_criteria_sect_summ" ("eval_criteria_sect_summ_guid") ON DELETE No Action ON UPDATE No Action
89+
;

0 commit comments

Comments
 (0)