aboutsummaryrefslogtreecommitdiff
path: root/documentation/migrations.rst
diff options
context:
space:
mode:
authorCédric Bonhomme <cedric@cedricbonhomme.org>2015-02-19 14:54:25 +0100
committerCédric Bonhomme <cedric@cedricbonhomme.org>2015-02-19 14:54:25 +0100
commit61abd4ba63a858698a797fec1ec7069ba7b0c18a (patch)
treeff42aac35ef35d8edfb5e3f823c179c4b32e8e41 /documentation/migrations.rst
parentUpdated documentation. (diff)
downloadnewspipe-61abd4ba63a858698a797fec1ec7069ba7b0c18a.tar.gz
newspipe-61abd4ba63a858698a797fec1ec7069ba7b0c18a.tar.bz2
newspipe-61abd4ba63a858698a797fec1ec7069ba7b0c18a.zip
Updated documentation for the migrations.
Diffstat (limited to 'documentation/migrations.rst')
-rw-r--r--documentation/migrations.rst24
1 files changed, 24 insertions, 0 deletions
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
bgstack15