Adds unique constraint on Django's migration tracking model
Project description
Django Atomic Migrations
This small package ensures that Django's migration tracking model has an unique index for applied migrations.
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.2.0.tar.gz
Algorithm | Hash digest | |
---|---|---|
SHA256 | c4da90fd6220fa0fb4d37572fc80d8cdc1618b65318389a244874e1471d617ff |
|
MD5 | 85578d225544b71e06c7a42a28ae8b2a |
|
BLAKE2b-256 | 31edb25da858e71e952501ef4b0d8fab7192eec3b36609470046c14c7ca03ed4 |