aboutsummaryrefslogtreecommitdiff
path: root/README.md
diff options
context:
space:
mode:
authorrubenwardy <rw@rubenwardy.com>2018-05-25 17:41:16 +0100
committerrubenwardy <rw@rubenwardy.com>2018-05-25 17:41:16 +0100
commit079775f5f6599163f3b40a4bc9ddb7669ba91ef7 (patch)
tree88553d425c52c6029c7f8bca7c1c0023609c5197 /README.md
parent9d91d337d5fc099195a756d331c27bc0780f5ce7 (diff)
downloadcheatdb-079775f5f6599163f3b40a4bc9ddb7669ba91ef7.tar.xz
Add dependency support to Edit Requests
Diffstat (limited to 'README.md')
-rw-r--r--README.md16
1 files changed, 16 insertions, 0 deletions
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
+```