Reputation: 10145
I have a project based on Django 1.6 with South. I wonder is it possible to upgrade my project to Django 1.7 with new built-in database migration system and save possibility to downgrade database to previous statements?
Upvotes: 0
Views: 203
Reputation: 779
From a blog post I can't find anymore, the best way is to create two distinct directories: one new_migrations which will handle the migrations files (django 1.7), and another one old_migrations which will handle (if you need to) the downgrade part.
In order to do it, move your migrations folder to old_migrations, then recreate all your schema with the migrations built-in :)
In case of downgrade, just move your old directory and use South as before.
Upvotes: 3