aboutsummaryrefslogtreecommitdiff
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
parentUpdated documentation. (diff)
downloadnewspipe-61abd4ba63a858698a797fec1ec7069ba7b0c18a.tar.gz
newspipe-61abd4ba63a858698a797fec1ec7069ba7b0c18a.tar.bz2
newspipe-61abd4ba63a858698a797fec1ec7069ba7b0c18a.zip
Updated documentation for the migrations.
-rw-r--r--README.rst1
-rw-r--r--documentation/migrations.rst24
2 files changed, 25 insertions, 0 deletions
diff --git a/README.rst b/README.rst
index b41b64f4..831297e5 100644
--- a/README.rst
+++ b/README.rst
@@ -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
bgstack15