Ticket #430 (reopened enhancement)
Avoiding the "./manage.py migrate myapp 0001 --fake"
|Reported by:||smyrman||Owned by:||andrew|
It would be great if one could avoid having to run "./manage.py migrate myapp 0001 --fake" as described here.
Please tell me if what I suggest is stupid, but would it not be possible to have a settings parameter that enabled the following extra functionallety in "./mange.py migrate myapp" (pseudo code):
“””Call after manage.py syncdb”””
table_name = get_fist_table_name_from_migration_0001(app)
table_list = get_list_of_table_names_from_db()
if table_name in table_list and app not in south's_app_table:
system(“./manage.py migrate myapp 0001 --fake”)
Do you think it will work, ot am I missing something?
If it does work, one could easily start out with an app that doesn't use South, and once there is a need to migrate it, just after a bunch of users has already started using the app, you can add South, push your upgrade to the community. And they would never notice a thing.