mirror of
https://github.com/bitnami/containers.git
synced 2026-03-19 15:57:46 +08:00
adds SKIP_DB_MIGRATE control parameter
This commit is contained in:
@@ -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
|
||||
|
||||
Reference in New Issue
Block a user