Django reset migrations
Add one command to reset the django migrations.
Sometimes you have one app that had a lot migrations in development process. And this migrations could be deleted, because anybody will need this in the future.
Soo, could be stressfull delete the files, reset the database and create the first migration again … to start to developer again and bla bla bla …
Because this, I made this command to reset the migrations and start the first migration.
I hope be usefull to you 2 :D
Features
delete migrations files
delete registers in django_migrations
recreate the first migrations
apply fake migration
delete register without delete files with –cached
To install
pip install django-reset-migrations
Install package in your INSTALLED_APPS
settings.py
INSTALLED_APPS = (
...
'reset_migrations',
.....
)
Usage
python manage.py reset_migrations crm or python manage.py reset_migrations app1 app2 or python manage.py reset_migrations app1 app2 --cached
Options
–cached: Don´t delete the migrations files in apps
Metadata
Release files for django-reset-migrations 0.4.0
For a detailed explanation of source distributions (sdists) and built distributions (wheels), please see the package formats documentation.
Built distributions (wheels)
| File | Interpreter | ABI | Platform | Actions Reset |
|---|---|---|---|---|
| django_reset_migrations-0.4.0-py3-none-any.whl | Python 3 | none | any | Details for django_reset_migrations-0.4.0-py3-none-any.whl |
| django-reset-migrations-0.4.0.macosx-10.14-x86_64.tar.gz | Details for django-reset-migrations-0.4.0.macosx-10.14-x86_64.tar.gz |
Total release size: 12.7 kB
Release files / django_reset_migrations-0.4.0-py3-none-any.whl
| Download URL | django_reset_migrations-0.4.0-py3-none-any.whl |
|---|---|
| Size | 8.0 kB |
| Tags | Python 3 |
|
SHA-256 checksum How to use checksums |
902921c626a7d2c3348330b8afd8336ab46e4137165027817d5c2aeac884274d
|
|
BLAKE2b-256 checksum How to use checksums |
231197257821445ec2d8553f1bc3ba696c00f570d717b7cda77fd70d0e4188f8
|
| Upload date | |
|
Uploaded using Trusted Publishing? What is trusted publishing? |
No |
| Uploaded via |
Python-urllib/3.7
|
Release files / django-reset-migrations-0.4.0.macosx-10.14-x86_64.tar.gz
| Download URL | django-reset-migrations-0.4.0.macosx-10.14-x86_64.tar.gz |
|---|---|
| Size | 4.7 kB |
| Tags | Source |
|
SHA-256 checksum How to use checksums |
d14e008a06efd6f5f488121d8be7d60dac0fae2053a9a1b7582bb1194dd31e1a
|
|
BLAKE2b-256 checksum How to use checksums |
c1e07e15c32f7fd3ec2967418cb47cad8a92bf2c7041b7868f6e74dd0e0cd345
|
| Upload date | |
|
Uploaded using Trusted Publishing? What is trusted publishing? |
No |
| Uploaded via |
Python-urllib/3.7
|
Security for django-reset-migrations 0.4.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.