Skip to content

Instantly share code, notes, and snippets.

@imankulov
Created August 14, 2012 15:43
Show Gist options
  • Save imankulov/3350396 to your computer and use it in GitHub Desktop.
Save imankulov/3350396 to your computer and use it in GitHub Desktop.
Simple script to test the fix for broken celery migration
#!/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