Created
May 11, 2011 22:35
-
-
Save chrishomer/967537 to your computer and use it in GitHub Desktop.
This file contains hidden or 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
function resetData { | |
mysql -u root --execute="DROP DATABASE ${1:-thredup3_development};" | |
mysql -u root --execute="CREATE DATABASE ${1:-thredup3_development};" | |
gzip -d ./tmp/thredup.sql.gz | |
mysql -u root ${1:-thredup3_development} < ./tmp/thredup.sql | |
mysql -u root ${1:-thredup3_development} < ./db/clean_test_data.sql | |
} |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment