aboutsummaryrefslogtreecommitdiff
path: root/documentation/migrations.rst
blob: f29c7a19de2afbad4ae2e878c8f11c5d95c58405 (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:: bash

    $ python manage.py db upgrade

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

.. code:: bash

    $ heroku run python manage.py db upgrade
bgstack15