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

Support dumping to AWS RDS Postgres servers #125

Merged
merged 3 commits into from
Sep 25, 2020

Conversation

sjhewitt
Copy link
Contributor

On AWS RDS Postgres servers the "superuser" does not have permission to run the ALTER TABLE %s DISABLE TRIGGER ALL command. To get around this I've added a CLI argument --to-rds that indicates the dump is being done to an RDS database, and so will switch to looking up all the Foreign Keys in the database, and then using ALTER TABLE %s DROP CONSTRAINT %s/ALTER TABLE %s ADD CONSTRAINT %s %s to enable and disable the constraints.

@codecov
Copy link

codecov bot commented Sep 18, 2020

Codecov Report

Merging #125 into master will not change coverage.
The diff coverage is n/a.

Impacted file tree graph

@@           Coverage Diff           @@
##           master     #125   +/-   ##
=======================================
  Coverage   41.54%   41.54%           
=======================================
  Files           8        8           
  Lines         284      284           
=======================================
  Hits          118      118           
  Misses        159      159           
  Partials        7        7           

Continue to review full report at Codecov.

Legend - Click here to learn more
Δ = absolute <relative> (impact), ø = not affected, ? = missing data
Powered by Codecov. Last update d726dda...5fc9b13. Read the comment docs.

Copy link
Contributor

@vgarvardt vgarvardt left a comment

Choose a reason for hiding this comment

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

Thank you for your contribution! I left some comments regarding code and default behaviour.

@vgarvardt
Copy link
Contributor

vgarvardt commented Sep 25, 2020

👍

Approved with Zappr Approved with Zappr Approved with Zappr Approved with Zappr

@vgarvardt vgarvardt merged commit b4a5096 into hellofresh:master Sep 25, 2020
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