blob: 174c11320268d6466a7a4ba1dce94627c0e372b9 (
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
|