Code Monkey home page Code Monkey logo

django_reset_migrations's Introduction

License ![PyPI Downloads] (http://img.shields.io/pypi/dm/django-reset-migrations.svg)

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 INSTALL_APPS

settings.py

INSTALL_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

django_reset_migrations's People

Contributors

funkotron avatar khanmaytok avatar valdergallo avatar

Watchers

 avatar  avatar

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. 📊📈🎉

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.