DeadWisdom / Migratory

Migratory (pronounced as a pythoner: 'MY GRAY ER EE') is a migration contrib app for Django. It both generates custom migration files for you and is a system for executing them. What's more, it works great in a vcs environment.

Clone this repository (size: 102.2 KB): HTTPS / SSH
$ hg clone http://bitbucket.org/DeadWisdom/migratory/
View at rev
Migratory /
filename size last modified message
migratory  
test_project  
.hgignore 104 B 15 months ago Initial.
NOTES 4.5 KB 15 months ago Added NOTES, which is just a mirror of the wiki home.
README 957 B 15 months ago Added NOTES, which is just a mirror of the wiki home.

README

== Quick Start ==
Check out the django source's 'django' dir to this directory:

    svn co http://code.djangoproject.com/svn/django/trunk/django django

Link migratory to the contrib apps:

    ln -s `pwd`/migratory django/contrib/migratory

== Testing ==
Create the database "migratory-test", unless you're using sqlite3.
And then run the tests:

    cd test_project
    ./test <backend>
    
Where backend is 'postgresql_psycopg2', 'postgresql', 'mysql', or 'sqlite3'.

In reality, the backend dictates wich of the settings_<backend>.py are used, 
so if you made your own settings_<backend>.py, for instance 
"settings_local.py", you'd run "./test local" in your shell.

You can also specify where to stop the tests, this will stop after the fourth
test:

    ./test local 04
    
== App Layout ==
The main entry points to the app are events hooked in migratory/models.py and 
the ./manage.py command 'migrate' in migratory/management/commands/migrate.py