Last active
June 15, 2018 04:24
-
-
Save jeffbeagley/a587e23827b236b51d7885340e7af8b3 to your computer and use it in GitHub Desktop.
Easy way to track Git changes with MySQL and Docker
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
#!/usr/bin/env bash | |
docker exec CONTAINER_NAME mysqldump -u USERNAME -pPASSWORD DATABASE_NAME --no-data > db_schema_dump/vc.sql | |
# add outputted sql to current commit | |
git add db_schema_dump/vc.sql |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment