|
@ -40,6 +40,10 @@ db.Configuration.findOneAndUpdate( |
|
|
{ \$set: { "dbName" : "$DBNAME"} } |
|
|
{ \$set: { "dbName" : "$DBNAME"} } |
|
|
); |
|
|
); |
|
|
EOF |
|
|
EOF |
|
|
|
|
|
|
|
|
|
|
|
info Removing cache before migration |
|
|
|
|
|
rm -rf "$SERVICE_DATASTORE/var/cache/gogocarto/prod/"* |
|
|
|
|
|
info Launch migration |
|
|
symphony db:migrate |
|
|
symphony db:migrate |
|
|
} || { |
|
|
} || { |
|
|
err "Mongo database migration failed." |
|
|
err "Mongo database migration failed." |
|
|