Created
March 27, 2015 17:57
-
-
Save vivg/1209c0157dfcb9a6c125 to your computer and use it in GitHub Desktop.
Takes Postgresql schema dump and runs apgdiff tool to save the diff in a file.
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
pg_dump -U perkdsp -svf "production_schema.sql" perkdsp | |
pg_dump -U perkdsp -svf "staging_schema.sql" perkdsp_staging | |
java -jar apgdiff-2.4.jar production_schema.sql staging_schema.sql > diff.sql |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment