Testing revert strategies in django
Run tests with this command
python manage.py test --keepdb
Post
- title
- description
- created_at
- updated_at
Comment
- text
- post
- created_at
- updated_at
Post
- title
- description
- tags (Added field with null=True)
- created_at
- updated_at
Comment
- text
- post
- created_at
- updated_at
Post
- title
description(Field removed)- created_at
- updated_at
Comment
- text
- post
- created_at
- updated_at
Use this command to reset the database.
python manage.py reset_db
Note: This command is available from django-extensions
package.
http://lucasroesler.com/2017/02/zero-downtime-deploys-a-tale-of-django-migrations/