diff options
author | Cédric Bonhomme <cedric@cedricbonhomme.org> | 2015-02-19 14:54:25 +0100 |
---|---|---|
committer | Cédric Bonhomme <cedric@cedricbonhomme.org> | 2015-02-19 14:54:25 +0100 |
commit | 61abd4ba63a858698a797fec1ec7069ba7b0c18a (patch) | |
tree | ff42aac35ef35d8edfb5e3f823c179c4b32e8e41 | |
parent | Updated documentation. (diff) | |
download | newspipe-61abd4ba63a858698a797fec1ec7069ba7b0c18a.tar.gz newspipe-61abd4ba63a858698a797fec1ec7069ba7b0c18a.tar.bz2 newspipe-61abd4ba63a858698a797fec1ec7069ba7b0c18a.zip |
Updated documentation for the migrations.
-rw-r--r-- | README.rst | 1 | ||||
-rw-r--r-- | documentation/migrations.rst | 24 |
2 files changed, 25 insertions, 0 deletions
@@ -184,6 +184,7 @@ Documentation ============= * `web services <documentation/web-services.rst>`_; +* `migrations <documentation/migrations.rst>`_ Donation diff --git a/documentation/migrations.rst b/documentation/migrations.rst index e69de29b..174c1132 100644 --- a/documentation/migrations.rst +++ b/documentation/migrations.rst @@ -0,0 +1,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 |