bokchoy option for explicitly running migrations

This commit is contained in:
Stuart Young
2017-12-28 09:20:35 -05:00
parent dce5da581c
commit 454e5a3b55
5 changed files with 15 additions and 14 deletions

View File

@@ -40,6 +40,9 @@ for i in "$@"; do
-r|--rebuild_cache)
REBUILD_CACHE=true
;;
-m|--migrations)
APPLY_MIGRATIONS=true
;;
esac
done
@@ -108,7 +111,7 @@ if [[ $REBUILD_CACHE ]]; then
for db in "${database_order[@]}"; do
rebuild_cache_for_db
done
else
elif [[ $APPLY_MIGRATIONS ]]; then
for db in "${database_order[@]}"; do
run_migrations
done