Wraps migration step runs in transactions in Django
Project description
Django Atomic Migrations
This small package ensures that Django's migration tracking model has an unique index for applied migrations, and also ensures that migrations steps are applied in transactions. This is known to work with PostgreSQL.
Usage
Install the package:
$ pip install django-atomic-migrations
Then, add the application to INSTALLED_APPS
in your Django project:
INSTALLED_APPS = [
...
'django_atomic_migrations.AtomicMigrations',
...
]
If your project's database already exists, you should run
$ python manage.py add-migrations-constraint
to create the missing unique constraint.
Project details
Release history Release notifications | RSS feed
Download files
Download the file for your platform. If you're not sure which to choose, learn more about installing packages.
Source Distribution
Close
Hashes for django-atomic-migrations-0.1.6.tar.gz
Algorithm | Hash digest | |
---|---|---|
SHA256 | efbbbe093a9215f42d783f4ab56737f13714e92eeaf41667fd25969d828e0acb |
|
MD5 | b7934c76687c451b9cd3ccd43be9ae78 |
|
BLAKE2b-256 | 2d8b6f58ce5098e400606a47c74372213d78c0eccd4932bb06657db60860082a |