Metadata-Version: 2.1
Name: django_squash
Version: 0.0.1
Summary: A migration squasher that doesn't care how humpty dumpty was put together.
Home-page: https://github.com/kingbuzzman/django-squashing
Author: Javier Buzzi
Author-email: buzzi.javier@gmail.com
License: MIT
Description: django-squash
        ========================
        
        |Travis CI| |codecov|
        
        django-squash is a migration squashing replacement that cares more about keeping migrations small and precise.
        
        
        Setup
        ~~~~~~~~~~~~~~~~~~~~~~~~
        
        1. ``pip install django-squash``
        
        2. Add ``django_squash`` to your ``INSTALLED_APPS``.
        
        3. Profit!
        
        
        What this does
        ~~~~~~~~~~~~~~~~~~~~~~~~
        
        Let's say you have an app for a couple of years, with lots of changes to the app's ``migrations`` folder would look something like this:
        
        .. code-block::
        
            app/migrations/__init__.py
            app/migrations/0001_initial.py
            app/migrations/0002_changes.py
            ...
            app/migrations/0400_changes.py
        
        You can run ``python manage.py squash_migrations`` and then it will look like this:
        
        .. code-block::
        
            app/migrations/__init__.py
            app/migrations/0001_initial.py
            app/migrations/0002_changes.py
            ...
            app/migrations/0400_changes.py
            app/migrations/0401_squashed.py
        
        Inside the ``0401_squashed.py``, you will find all you migrations including all your ``RunPython`` and ``RunSQL`` that are `elidable`.
        
        After you know that all the migrations from ``0001`` to ``0401`` have been applied, run ``python manage.py delete_squashed_migrations``.
        
        
        Run tests
        ~~~~~~~~~~~~~~~~~~~~~~~~
        
        .. code-block:: shell
        
            pip install -e '.[test]'
            coverage run setup.py test
            coverage report -m
        
        
        .. |Travis CI| image:: https://travis-ci.com/kingbuzzman/django-squash.svg?branch=develop
           :target: https://travis-ci.com/kingbuzzman/django-squash
        
        .. |codecov| image:: https://codecov.io/gh/kingbuzzman/django-squash/branch/develop/graph/badge.svg
          :target: https://codecov.io/gh/kingbuzzman/django-squash
        
Keywords: django migration squashing squash
Platform: any
Classifier: Development Status :: 5 - Production/Stable
Classifier: Environment :: Console
Classifier: Intended Audience :: Developers
Classifier: Programming Language :: Python
Classifier: Programming Language :: Python :: 3
Classifier: Programming Language :: Python :: 3.4
Classifier: Programming Language :: Python :: 3.5
Classifier: Programming Language :: Python :: 3.6
Classifier: Programming Language :: Python :: 3.7
Classifier: Programming Language :: Python :: Implementation :: CPython
Classifier: Programming Language :: Python :: Implementation :: PyPy
Classifier: Topic :: Software Development :: Libraries :: Python Modules
Classifier: Topic :: Software Development :: Testing
Classifier: Topic :: Utilities
Classifier: License :: OSI Approved :: MIT License
Requires-Python: !=3.0.*, !=3.1.*, !=3.2.*, !=3.3.*
Provides-Extra: test
