Huge News!Announcing our $40M Series B led by Abstract Ventures.Learn More
Socket
Sign inDemoInstall
Socket

django-reset-migrations

Package Overview
Dependencies
Maintainers
1
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

django-reset-migrations

Add one command to reset the migrations of one or more app

  • 0.4.0
  • PyPI
  • Socket score

Maintainers
1

|License| |PyPI Downloads|

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

.. |License| image:: http://img.shields.io/:license-apache-blue.svg?style=flat-square :target: http://www.apache.org/licenses/LICENSE-2.0.html .. |PyPI Downloads| image:: http://img.shields.io/pypi/dm/django-reset-migrations.svg :target: https://pypi.python.org/pypi/django-reset-migrations

Keywords

FAQs


Did you know?

Socket

Socket for GitHub automatically highlights issues in each pull request and monitors the health of all your open source dependencies. Discover the contents of your packages and block harmful activity before you install or update your dependencies.

Install

Related posts

SocketSocket SOC 2 Logo

Product

  • Package Alerts
  • Integrations
  • Docs
  • Pricing
  • FAQ
  • Roadmap
  • Changelog

Packages

npm

Stay in touch

Get open source security insights delivered straight into your inbox.


  • Terms
  • Privacy
  • Security

Made with ⚡️ by Socket Inc