Skip to main content

Adds unique constraint on Django's migration tracking model

Project description

Django Atomic Migrations

Build Status

This small package ensures that Django's migration tracking model has an unique index for applied migrations.

Django ticket

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


Download files

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

Source Distribution

django-atomic-migrations-0.2.0.tar.gz (2.9 kB view details)

Uploaded Source

File details

Details for the file django-atomic-migrations-0.2.0.tar.gz.

File metadata

File hashes

Hashes for django-atomic-migrations-0.2.0.tar.gz
Algorithm Hash digest
SHA256 c4da90fd6220fa0fb4d37572fc80d8cdc1618b65318389a244874e1471d617ff
MD5 85578d225544b71e06c7a42a28ae8b2a
BLAKE2b-256 31edb25da858e71e952501ef4b0d8fab7192eec3b36609470046c14c7ca03ed4

See more details on using hashes here.

Supported by

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