gitlab-org--gitlab-foss/scripts/db_tasks

Ignoring revisions in .git-blame-ignore-revs. Click here to bypass and see the normal blame view.

13 lines
216 B
Text
Raw Normal View History

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