blob: 97d2c0f9763862108f3fec267614c01486824edc (
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 manager.py db upgrade
Remote migrations
-----------------
.. code-block:: bash
$ heroku run python manager.py db upgrade
|