Skip to main content

Wraps migration step runs in transactions in Django

Project description

Django Atomic Migrations

Build Status

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


Download files

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

Files for django-atomic-migrations, version 0.1.6
Filename, size File type Python version Upload date Hashes
Filename, size django-atomic-migrations-0.1.6.tar.gz (2.1 kB) File type Source Python version None Upload date Hashes View

Supported by

Pingdom Pingdom Monitoring Google Google Object Storage and Download Analytics Sentry Sentry Error logging AWS AWS Cloud computing DataDog DataDog Monitoring Fastly Fastly CDN DigiCert DigiCert EV certificate StatusPage StatusPage Status page