Skip to content
This repository has been archived by the owner on Apr 21, 2023. It is now read-only.

Latest commit

 

History

History
29 lines (20 loc) · 861 Bytes

README.md

File metadata and controls

29 lines (20 loc) · 861 Bytes

Reset Django migrations script

You work on Django project? You always wanted 'reset_migrations' manage command? Your migrations always f*cked up? You work with bunch of people and get tired of merging f*cking migrations? You have a lot of f*cking migrations and tired of waiting till they all will be applied?

This script is for you and your team!

Clean up migrations with just one press.

  • You do not need to restore schema or data from database.
  • This script is written on pure Bourne shell
  • It is simple
  • Database independent - script not using any db specific commands
Usage
    ./reset_migrations --settings=project_settings
    ./reset_migrations.sh --help

    ./reset_migrations.sh
    	-h --help
    	--settings=<your settings file>
        --makemigrations, if you need to create migrations