aboutsummaryrefslogtreecommitdiff
path: root/documentation/migrations.rst
blob: 69f6c97445dd9e88e9fcf5fc8cb12e97ec77a508 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
Migrations
==========

Migrations of the database are managed
with the database migrations tool
`Alembic <https://bitbucket.org/zzzeek/alembic>`_.

The Flask extensions `Flask-Script <https://github.com/smurfix/flask-script>`_
and `Flask-Migrate <https://github.com/miguelgrinberg/flask-migrate/>`_
are used to ease remote migrations.

Local migrations
----------------

.. code-block:: bash

    $ python manage.py db upgrade

Remote migrations
-----------------

.. code-block:: bash

    $ heroku run python manage.py db upgrade
bgstack15