gitlab-org--gitlab-foss/scripts/db_migrate

12 lines
239 B
Text
Raw Normal View History

#!/bin/bash
root_path="$(cd "$(dirname "$0")/.." || exit ; pwd -P)"
if [[ -d "${root_path}/ee/" || "${GITLAB_MIGRATE_MAIN_ONLY}" == "true" ]]; then
task="db:migrate:main"
else
task="db:migrate"
fi
eval "bundle exec rake ${task} ${*}"