Manage changelog as migrations
We have two commands, similar to Django Migrations, code based on it. One command creates an empty file ready for write our python code for the change (as a template file with some basic dependencies). We can include commands call or query using our django models.
We manage dependencies between changes at the same way that Django does. And also, we can manage conflicts through merging.
We only have two operations developed: RunPython and RunSQL (both of them, without parameters) When you want to apply for changes, please execute applychange with/without app_label. You will see messages similar to migrations.
Install django-changelog:
`pip install exo-changelog`
Add it to your INSTALLED_APPS:
INSTALLED_APPS = (
...
'exo_changelog.apps.ExoChangelogConfig',
...
)
Create the changelog table: ./manage.py migrate exo_changelog
- Create an empty change: ./manage.py makechange <app_name>
- Execute changes: ./manage.py applychange <app_name>
Tools used in rendering this package: