aboutsummaryrefslogtreecommitdiff
path: root/utils/run_migrations.sh
diff options
context:
space:
mode:
authorrubenwardy <rw@rubenwardy.com>2020-01-18 23:20:34 +0000
committerrubenwardy <rw@rubenwardy.com>2020-01-18 23:20:34 +0000
commit64e1805b5387ca3ab7cad55b85b8ae54be076d35 (patch)
tree51e0829622c660346e5b2d515555a92acd10277e /utils/run_migrations.sh
parent22d02edbd858649e1c890621d72867d913f8dc57 (diff)
downloadcheatdb-64e1805b5387ca3ab7cad55b85b8ae54be076d35.tar.xz
Add more util scripts
Diffstat (limited to 'utils/run_migrations.sh')
-rwxr-xr-xutils/run_migrations.sh5
1 files changed, 5 insertions, 0 deletions
diff --git a/utils/run_migrations.sh b/utils/run_migrations.sh
new file mode 100755
index 0000000..ac96a95
--- /dev/null
+++ b/utils/run_migrations.sh
@@ -0,0 +1,5 @@
+#!/bin/bash
+
+# Run all pending migrations
+
+docker exec -it contentdb_app_1 sh -c "FLASK_CONFIG=../config.cfg FLASK_APP=app/__init__.py flask db update"