Created
August 14, 2012 15:43
-
-
Save imankulov/3350396 to your computer and use it in GitHub Desktop.
Simple script to test the fix for broken celery migration
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
#!/bin/bash | |
set -eux | |
db="celery_test" | |
mysql -e "drop database $db; create database $db default charset utf8" | |
./manage.py syncdb --noinput; | |
./manage.py migrate djcelery 0001 | |
# Comment out commands below to test the normal migration flow | |
mysql -e "drop table $db.celery_taskmeta" | |
mysql -e "drop table $db.celery_tasksetmeta" | |
./manage.py migrate djcelery |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment