-
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.
Merge branch 'main' into 16882_user_saved_views_ui
- Loading branch information
Showing
80 changed files
with
3,685 additions
and
1,048 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
10 changes: 10 additions & 0 deletions
10
...-database/migrations/1735855851119_update_atd_project_owner_to_tpw_project_owner/down.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,10 @@ | ||
INSERT INTO moped_project_roles (project_role_id, project_role_name, active_role, role_order, project_role_description) | ||
VALUES (0, 'Unknown', TRUE, 999, 'Unknown Role'); | ||
|
||
UPDATE moped_project_roles | ||
SET project_role_description = 'Supervises contractor activities for approval before invoicing; accepts work on behalf of ATD and coordinates with other divisions' | ||
WHERE project_role_id = 12; | ||
|
||
UPDATE moped_project_roles | ||
SET project_role_name = 'ATD Project Owner' | ||
WHERE project_role_id = 5; |
10 changes: 10 additions & 0 deletions
10
moped-database/migrations/1735855851119_update_atd_project_owner_to_tpw_project_owner/up.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,10 @@ | ||
UPDATE moped_project_roles | ||
SET project_role_name = 'TPW Project Owner' | ||
WHERE project_role_id = 5; | ||
|
||
UPDATE moped_project_roles | ||
SET project_role_description = 'Supervises contractor activities for approval before invoicing; accepts work on behalf of TPW and coordinates with other divisions' | ||
WHERE project_role_id = 12; | ||
|
||
DELETE FROM moped_project_roles | ||
WHERE project_role_id = 0; |
1 change: 1 addition & 0 deletions
1
moped-database/migrations/1736291471358_add_proj_fund_view/down.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 @@ | ||
DROP VIEW project_funding_view; |
22 changes: 22 additions & 0 deletions
22
moped-database/migrations/1736291471358_add_proj_fund_view/up.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,22 @@ | ||
CREATE OR REPLACE VIEW project_funding_view AS | ||
SELECT | ||
mp.project_id, | ||
mpf.proj_funding_id, | ||
mpf.funding_amount, | ||
mpf.funding_description, | ||
mpf.fund_dept_unit, | ||
mpf.created_at, | ||
mpf.updated_at, | ||
mfs.funding_source_name, | ||
mfp.funding_program_name, | ||
mfst.funding_status_name | ||
FROM | ||
moped_project AS mp | ||
LEFT JOIN moped_proj_funding AS mpf ON mp.project_id = mpf.project_id | ||
LEFT JOIN moped_fund_sources AS mfs ON mpf.funding_source_id = mfs.funding_source_id | ||
LEFT JOIN moped_fund_programs AS mfp ON mpf.funding_program_id = mfp.funding_program_id | ||
LEFT JOIN moped_fund_status AS mfst ON mpf.funding_status_id = mfst.funding_status_id | ||
WHERE | ||
TRUE | ||
AND mp.is_deleted = FALSE | ||
AND mpf.is_deleted = FALSE; |
3 changes: 3 additions & 0 deletions
3
moped-database/migrations/1736442550315_update_entities/down.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,3 @@ | ||
-- Updating moped_entity table will be up only. If we need to revert, we will need do it manually or | ||
-- update with a future migration. | ||
SELECT 0; |
Oops, something went wrong.