From 079775f5f6599163f3b40a4bc9ddb7669ba91ef7 Mon Sep 17 00:00:00 2001 From: rubenwardy Date: Fri, 25 May 2018 17:41:16 +0100 Subject: Add dependency support to Edit Requests --- README.md | 16 ++++++++++++++++ 1 file changed, 16 insertions(+) (limited to 'README.md') diff --git a/README.md b/README.md index c96fbf0..c5203e1 100644 --- a/README.md +++ b/README.md @@ -40,3 +40,19 @@ Then run the server: ./rundebug.py Then view in your web browser: http://localhost:5000/ + +## How-tos + +### Create migration + +```sh +# if sqlite +python setup.py -t +rm db.sqlite && python setup.py -t && FLASK_CONFIG=../config.cfg FLASK_APP=app/__init__.py flask db stamp head + +# Create migration +FLASK_CONFIG=../config.cfg FLASK_APP=app/__init__.py flask db migrate + +# Run migration +FLASK_CONFIG=../config.cfg FLASK_APP=app/__init__.py flask db migrate +``` -- cgit v1.2.3