From 61abd4ba63a858698a797fec1ec7069ba7b0c18a Mon Sep 17 00:00:00 2001 From: Cédric Bonhomme Date: Thu, 19 Feb 2015 14:54:25 +0100 Subject: Updated documentation for the migrations. --- documentation/migrations.rst | 24 ++++++++++++++++++++++++ 1 file changed, 24 insertions(+) (limited to 'documentation') 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 `_. + +The Flask extensions `Flask-Script `_ +and `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 -- cgit