adds SKIP_DB_MIGRATE control parameter

This commit is contained in:
Sameer Naik
2017-01-17 16:18:24 +05:30
parent 6cfd1d02e5
commit 49c19815ba

View File

@@ -87,7 +87,7 @@ npm_install() {
}
migrate_db() {
if [ -f .sequelizerc ]; then
if ! [[ -n $SKIP_DB_MIGRATE && $SKIP_DB_MIGRATE -gt 0 ]] && [[ -f .sequelizerc ]]; then
log "Applying database migrations (sequelize db:migrate)"
sequelize db:migrate
fi