generated from bcgov/quickstart-openshift
-
Notifications
You must be signed in to change notification settings - Fork 2
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
- Loading branch information
Showing
50 changed files
with
23,499 additions
and
0 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 |
---|---|---|
@@ -0,0 +1,16 @@ | ||
FROM flyway/flyway:9.10-alpine | ||
|
||
# Create directory for test scripts before we switch to app user | ||
RUN mkdir -p /flyway/sql-test | ||
|
||
# Non-root user | ||
RUN adduser -D app | ||
USER app | ||
|
||
# Copy migrations | ||
COPY ./migrations /flyway/sql | ||
|
||
COPY ./test-only-migrations /flyway/sql-test | ||
|
||
# Startup | ||
CMD ["info","migrate","info"] |
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 @@ | ||
-- | ||
-- Moved to R__Code-Table-Data.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 @@ | ||
-- | ||
-- Moved to R__Code-Table-Data.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 @@ | ||
-- | ||
-- Moved to R__Code-Table-Data.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,23 @@ | ||
-- | ||
-- update complaint owner to EPO agency where allegation violation_code is WASTE or PESTICDE | ||
-- | ||
|
||
-- | ||
-- ATTENTION IF THIS FILE IS EVER TOUCHED ON A RELEASE FOR ANY REASON!!!!!!!!!!!! | ||
-- | ||
-- If this file is touched causing the checksum to change flyway will execute it in the | ||
-- various environment, INCLUDING PRODUCTION. This may not be desired, especially the first two | ||
-- statements. Think twice before touching this file. In retrospect this should have been a versioned script. | ||
-- | ||
|
||
UPDATE complaint SET owned_by_agency_code = 'EPO' | ||
FROM allegation_complaint | ||
WHERE complaint.complaint_identifier = allegation_complaint.complaint_identifier AND allegation_complaint.violation_code = 'WASTE'; | ||
|
||
UPDATE complaint SET owned_by_agency_code = 'EPO' | ||
FROM allegation_complaint | ||
WHERE complaint.complaint_identifier = allegation_complaint.complaint_identifier AND allegation_complaint.violation_code = 'PESTICDE'; | ||
|
||
UPDATE complaint SET owned_by_agency_code = 'COS' | ||
FROM allegation_complaint | ||
WHERE complaint.owned_by_agency_code IS NULL |
Oops, something went wrong.