Module Import alias ImportFrom alias Assign NameStore Str ClassDef bases NameLoad body Pass decorator_list FunctionDef arguments args NameParam defaults body FunctionDef arguments args NameParam NameParam defaults body Assign NameStore CompareEq Call AttributeLoad AttributeLoad NameLoad attr attr Str Str If BoolOpAnd UnaryOpNot AttributeLoad NameLoad attr UnaryOpNot AttributeLoad NameLoad attr UnaryOpNot NameLoad body Raise Call NameLoad Call AttributeLoad NameLoad attr keyword AttributeLoad NameLoad attr decorator_list Return NameLoad decorator_list
N/A N/A os django.conf settings N/A MIGRATION_MESSAGE 
Before you can merge you must run the {slug} doc_type migration.

If you're seeing this on your **dev machine**, run

./manage.py sync_couch_views
./manage.py run_doctype_migration {slug} --initial
./manage.py migrate

and that final migrate should go through without a hitch.

After you migrate/update your code and everything's working fine, run

./manage.py run_doctype_migration {slug} --cleanup

to delete the documents from the source db that have been copied to the target db


If you're seeing this on a **production deploy**
take note of the full file path to this aborted release,
something like "/home/cchq/www/production/releases/2015-10-16_19.37",
and then follow the full instructions for the zero-downtime live swap:

https://github.com/dimagi/commcare-hq/blob/master/corehq/doctypemigrations/README.md#run-the-doctype-migration

Instead of the "current" release, use the path to this release.
(This simply has the effect of running the process on up-to-date code.)
 MigrationNotComplete N/A Exception N/A N/A N/A assert_initial_complete N/A N/A migrator N/A N/A forwards N/A N/A apps schema_editor N/A N/A N/A is_fresh_install N/A N/A N/A N/A os environ get CCHQ_IS_FRESH_INSTALL 1 N/A N/A N/A N/A migrator last_seq N/A N/A settings UNIT_TESTING N/A is_fresh_install N/A N/A N/A MigrationNotComplete N/A N/A MIGRATION_MESSAGE format slug N/A migrator slug N/A N/A forwards N/A