Skip to main content

Django remake migrations

CI Status Documentation Status Test coverage percentage

uv Ruff prek

PyPI Version Supported Python versions License


Documentation: https://django-remake-migrations.readthedocs.io

Source Code: https://github.com/browniebroke/django-remake-migrations


A Django admin command to recreate all migrations in a project. Like a squashmigrations command on steroids.

The problem

The built-in squashmigrations command is great, but it only work on a single app at a time, which means that you need to run it for each app in your project. On a project with enough cross-apps dependencies, it can be tricky to run.

This command aims at solving this problem, by recreating all the migration files in the whole project, from scratch, and mark them as applied by using the replaces attribute.

It makes an important trade-off though: it does NOT try to be correct when setting the replaces attribute. The only guarantees are that:

  • all old migrations are marked as replaced once.
  • all new migrations replace at least one of the old migrations

This is OK to make this trade-off as long as all your environments are fully migrated when you deploy the remade migrations.

Contributors ✨

Thanks goes to these wonderful people (emoji key):

Bruno Alla
Bruno Alla

💻 🤔 📖
Dmytro Litvinov
Dmytro Litvinov

📖
Mikuláš Poul
Mikuláš Poul

💻 🤔
Adam Johnson
Adam Johnson

🐛

This project follows the all-contributors specification. Contributions of any kind welcome!

Credits

This package was created with Copier and the browniebroke/pypackage-template project template.

Download files

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

Source Distribution

django_remake_migrations-3.0.0.tar.gz (17.7 kB view details)

Uploaded Source

Built Distribution

If you're not sure about the file name format, learn more about wheel file names.

django_remake_migrations-3.0.0-py3-none-any.whl (14.0 kB view details)

Uploaded Python 3

File details

Details for the file django_remake_migrations-3.0.0.tar.gz.

File metadata

  • Download URL: django_remake_migrations-3.0.0.tar.gz
  • Upload date:
  • Size: 17.7 kB
  • Tags: Source
  • Uploaded using Trusted Publishing? Yes
  • Uploaded via: twine/6.1.0 CPython/3.13.14

File hashes

Hashes for django_remake_migrations-3.0.0.tar.gz
Algorithm Hash digest
SHA256 4336557a060687ada307293e4a258b82fdbf030689dfc8565599a36ce205f40a
MD5 75465858f98d5d389bd0d0b3dcc462fe
BLAKE2b-256 ded34d135afe67158eb777c466ed9c8494b515a5010df01265f1fa1d0547b7ad

See more details on using hashes here.

Provenance

The following attestation bundles were made for django_remake_migrations-3.0.0.tar.gz:

Publisher: ci.yml on browniebroke/django-remake-migrations

Attestations: Values shown here reflect the state when the release was signed and may no longer be current.

File details

Details for the file django_remake_migrations-3.0.0-py3-none-any.whl.

File metadata

File hashes

Hashes for django_remake_migrations-3.0.0-py3-none-any.whl
Algorithm Hash digest
SHA256 3aa774d4831f6718e9eeaa2d017f38af48c58400b9d53d29d2e4755683329165
MD5 34005fc6387171eb44cbc46f43832ee7
BLAKE2b-256 88f982c7d0fa95a8f031d8e03883ac8a389c1f076823cf2fd88fac1623ecc641

See more details on using hashes here.

Provenance

The following attestation bundles were made for django_remake_migrations-3.0.0-py3-none-any.whl:

Publisher: ci.yml on browniebroke/django-remake-migrations

Attestations: Values shown here reflect the state when the release was signed and may no longer be current.

Release history Release notifications | RSS feed

3.1.0

2 files

This release

3.0.0 This release

2 files

2.11.0

2 files

2.10.1

2 files

2.10.0

2 files

2.9.0

2 files

2.8.0

2 files

2.7.1

2 files

2.7.0

2 files

2.6.0

2 files

2.5.0

2 files

2.4.0

2 files

2.3.0

2 files

2.2.0

2 files

2.1.0

2 files

2.0.0

2 files

1.1.3

2 files

1.1.2

2 files

1.1.1

2 files

1.1.0

2 files

1.0.0

2 files

0.3.2

2 files

0.3.1

2 files

0.3.0

2 files

0.2.1

2 files

0.2.0

2 files

0.1.0

2 files

Anthropic, PBC Visionary sponsor Bloomberg Visionary sponsor Hudson River Trading Visionary sponsor Meta Visionary sponsor NVIDIA Visionary sponsor Microsoft Sustainability sponsor Depot Continuous Integration AWS Cloud computing and Security Sponsor Datadog Monitoring Fastly CDN Google Download Analytics Sentry Error logging StatusPage Status page