Skip to main content

Manage changelog as migrations

Project description

https://badge.fury.io/py/exo-changelog.svg Requirements Status https://travis-ci.org/exolever/django-changelog.svg https://codecov.io/gh/exolever/django-changelog/branch/master/graph/badge.svg

Manage changelog as migrations

Documentation

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.

Quickstart

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

Features

  • Create an empty change: ./manage.py makechange <app_name>

  • Execute changes: ./manage.py applychange <app_name>

Credits

Tools used in rendering this package:

History

0.1.0 (2018-08-28)

  • First release on PyPI.

Project details


Download files

Download the file for your platform. If you're not sure which to choose, learn more about installing packages.

Source Distribution

exo-changelog-0.1.7.tar.gz (26.2 kB view hashes)

Uploaded Source

Built Distribution

exo_changelog-0.1.7-py2.py3-none-any.whl (31.4 kB view hashes)

Uploaded Python 2 Python 3

Supported by

AWS AWS Cloud computing and Security Sponsor Datadog Datadog Monitoring Fastly Fastly CDN Google Google Download Analytics Microsoft Microsoft PSF Sponsor Pingdom Pingdom Monitoring Sentry Sentry Error logging StatusPage StatusPage Status page