Django Simple Migrations
Django migrations without unnecesary change alert triggers.
This project was originally taken from Pretix source code and battle testet across many projects on SoftButterfly.
This package overrides the commands makemigrations and migrate, mainly to make that makemigrations doesn't create migrations on non-significant database model fields and avoid migrate warnings. As is stated in the source code
-
makemigrationsDjango, for theoretically very valid reasons, creates migrations for every single thing we change on a model. Even the
help_text! This makes sense, as we don't know if any database backend unknown to us might actually use this information for its database schema.However, many projects only supports PostgreSQL, MySQL, MariaDB and SQLite and we can be pretty certain that some changes to models will never require a change to the database. In this case, not creating a migration for certain changes will save us some performance while applying them and allow for a cleaner git history. Win-win!
Only caveat is that we need to do some dirty monkeypatching to achieve it...
-
migrateDjango tries to be helpful by suggesting to run "makemigrations" in red font on every "migrate" run when there are things we have no migrations for. Usually, this is intended, and running "makemigrations" can really screw up the environment of a user, so we want to prevent novice users from doing that by going really dirty and filtering it from the output.
Requirements
- Python 3.11, 3.12, 3.13, 3.14
Install
pip install django-sb-simple-migrations
Usage
Just add django_sb_simple_migrations to your INSTALLED_APPS settings
INSTALLED_APPS = [
# ...
"django_sb_simple_migrations",
# ...
]
Docs
Changelog
All changes to versions of this library are listed in the change history.
Development
Check out our contribution guide.
Contributors
See the list of contributors here.
Metadata
Release files for django-sb-simple-migrations 0.11.0
For a detailed explanation of source distributions (sdists) and built distributions (wheels), please see the package formats documentation.
Source distribution (sdist)
| File | Size | Uploaded | Provenance | |
|---|---|---|---|---|
| django_sb_simple_migrations-0.11.0.tar.gz | 13.6 kB | Without provenance | Details |
Built distribution (wheel)
| File | Interpreter | ABI | Platform | Reset |
|---|---|---|---|---|
| django_sb_simple_migrations-0.11.0-py3-none-any.whl | Python 3 | none | any | Details |
Total release size: 26.5 kB
Release files / django_sb_simple_migrations-0.11.0.tar.gz
| Download URL | django_sb_simple_migrations-0.11.0.tar.gz |
|---|---|
| Size | 13.6 kB |
| Tags | Source |
|
SHA-256 checksum How to use checksums |
23bae1fb11423f3eeb14496cbc48824ce31e59f281f254ab1a08c633defc918d
|
|
BLAKE2b-256 checksum How to use checksums |
ca70ab072877823fa0fb96a15180cb1ecf4324643331d7978fdf7d9a73903af3
|
| Upload date | |
|
Uploaded using Trusted Publishing? What is trusted publishing? |
Yes |
| Uploaded via |
uv/0.13.1 {"installer":{"name":"uv","version":"0.13.1","subcommand":["publish"]},"python":null,"implementation":{"name":null,"version":null},"distro":{"name":"Debian GNU/Linux","version":"13","id":"trixie","libc":null},"system":{"name":null,"release":null},"cpu":null,"openssl_version":null,"setuptools_version":null,"rustc_version":null,"ci":true}
|
Release files / django_sb_simple_migrations-0.11.0-py3-none-any.whl
| Download URL | django_sb_simple_migrations-0.11.0-py3-none-any.whl |
|---|---|
| Size | 12.9 kB |
| Tags | Python 3 |
|
SHA-256 checksum How to use checksums |
2cae3562a1ce03c24c6c99895e6540e5cef693e9fa2d1d201b32e1ffd8d4e76e
|
|
BLAKE2b-256 checksum How to use checksums |
ab4e43cca0aaf4dffefe177b62c605823726ce398f70bb7961c512c3b8cc2dcc
|
| Upload date | |
|
Uploaded using Trusted Publishing? What is trusted publishing? |
Yes |
| Uploaded via |
uv/0.13.1 {"installer":{"name":"uv","version":"0.13.1","subcommand":["publish"]},"python":null,"implementation":{"name":null,"version":null},"distro":{"name":"Debian GNU/Linux","version":"13","id":"trixie","libc":null},"system":{"name":null,"release":null},"cpu":null,"openssl_version":null,"setuptools_version":null,"rustc_version":null,"ci":true}
|
Security for django-sb-simple-migrations 0.11.0
Provenance
Provenance describes where a file came from. On PyPI, provenance is shared via attestations, which provide a verifiable record of the build or publishing details. View details, limitations and caveats.
No provenance found
None of the files in this release were uploaded with provenance metadata.
A note on package security
PyPI is a repository for distributing packages, not a service for auditing them. While third-party security researchers and our staff do their best to detect and remove malicious packages, PyPI cannot guarantee the quality, security or suitability of any given package.
To learn more about protecting yourself from malicious actors, visit our package security documentation.