django-migration-snapshots
django-migration-linter
django-migration-snapshots | django-migration-linter | |
---|---|---|
1 | 3 | |
13 | 510 | |
- | -0.2% | |
10.0 | 7.1 | |
over 1 year ago | about 1 month ago | |
Python | Python | |
BSD 3-clause "New" or "Revised" License | Apache License 2.0 |
Stars - the number of stars that a project has on GitHub. Growth - month over month growth in stars.
Activity is a relative number indicating how actively a project is being developed. Recent commits have higher weight than older ones.
For example, an activity of 9.0 indicates that a project is amongst the top 10% of the most actively developed projects that we are tracking.
django-migration-snapshots
-
Migrations Of Madness
In comes django-migration-snapshots (https://github.com/Lenders-Cooperative/django-migration-snapshots), which allows us to visualize Django’s migration dependency tree as a directed graph (digraph https://en.wikipedia.org/wiki/Directed_graph ) - along with the above features and more. The package is easily pluggable into any project and provides the ability to easily save a snapshot of our project’s migration history. And since this package is built on top of pygraphviz, the textual and graphical snapshot can be saved in 20+ output formats.
django-migration-linter
-
How do you verify the safety of database schema migrations?
https://github.com/3YOURMIND/django-migration-linter running before tests in CI, with some extra stuff that only warns by default set up to error out as well, for example non-async index create/drop.
-
Schema Migrations and Avoiding Downtime
A tool I've used with Django in the past is the one: https://github.com/3YOURMIND/django-migration-linter
It helps with the problem that if you're running several application servers it's important to avoid migrations that are backwards incompatible - since if some of your application servers haven't yet updated to the latest code you could get errors when they try to run queries against the migrates database.
-
Does anyone use ci/cd for deploying database changes?
There's actually a Django package called django-migration-linter that can help with this by spotting migrations that could break under that condition: https://github.com/3YOURMIND/django-migration-linter
What are some alternatives?
Flask-Migrate - SQLAlchemy database migrations for Flask applications using Alembic
dev-setup - macOS development environment setup: Easy-to-understand instructions with automated setup scripts for developer tools like Vim, Sublime Text, Bash, iTerm, Python data analysis, Spark, Hadoop MapReduce, AWS, Heroku, JavaScript web development, Android development, common data stores, and dev-based OS X defaults.
djLint - ✨ HTML Template Linter and Formatter. Django - Jinja - Nunjucks - Handlebars - GoLang
prisma-client-py - Prisma Client Python is an auto-generated and fully type-safe database client designed for ease of use
terminusdb - TerminusDB is a distributed database with a collaboration model
Redash - Make Your Company Data Driven. Connect to any data source, easily visualize, dashboard and share your data.
django-pgschemas - Django multi-tenancy through Postgres schemas