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

MAP-949 Preprod refresh scripts and cronjob #2227

Merged
merged 3 commits into from
Apr 18, 2024
Merged

MAP-949 Preprod refresh scripts and cronjob #2227

merged 3 commits into from
Apr 18, 2024

Conversation

danbenton-mojdt
Copy link
Contributor

Jira link

MAP-949

What?

I have added bash/sql scripts to run partial updates of preprod from production

Why?

I am doing this because this currently runs on my machine and that not good

Deployment risks

  • Includes destructive/migratory actions which may affect critical offender data

@danbenton-mojdt danbenton-mojdt requested a review from a team as a code owner April 12, 2024 15:21
CREATE TABLE suppliers_temp (LIKE suppliers);
CREATE TABLE youth_risk_assessments_temp (LIKE youth_risk_assessments);
CREATE TABLE generic_events_temp (LIKE generic_events);
-- CREATE TABLE versions_temp (LIKE versions);
Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Is versions_temp meant to be commented out?

@Thource
Copy link
Contributor

Thource commented Apr 18, 2024

looks like script 2 is missing? presumably to copy the prod data?

@danbenton-mojdt
Copy link
Contributor Author

looks like script 2 is missing? presumably to copy the prod data?

The sql in the bash methods does the job of what might have been script 2 (copying the prod data to the temp tables). I named the others 3 onwards in case I wanted to replace the individual calls with a prewritten sql script in the same way as the others.

@danbenton-mojdt danbenton-mojdt merged commit 17745d8 into main Apr 18, 2024
8 checks passed
@danbenton-mojdt danbenton-mojdt deleted the MAP-949 branch April 18, 2024 10:05
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants