summaryrefslogtreecommitdiff
path: root/scripts/utils.sh
diff options
context:
space:
mode:
authorLin Jen-Shin <godfat@godfat.org>2018-05-11 23:06:08 +0800
committerLin Jen-Shin <godfat@godfat.org>2018-05-16 21:52:08 +0800
commitcdcde75bb782951b27ab9db0d54a71db7c94d7cb (patch)
tree014c894a52bc263e485700bb1ba129db5c2dc8dc /scripts/utils.sh
parent73289a8361aa6bb2cbd26873ccabe512fca6589b (diff)
downloadgitlab-ce-cdcde75bb782951b27ab9db0d54a71db7c94d7cb.tar.gz
Only setup db in the first checkout!
Diffstat (limited to 'scripts/utils.sh')
-rw-r--r--scripts/utils.sh8
1 files changed, 8 insertions, 0 deletions
diff --git a/scripts/utils.sh b/scripts/utils.sh
index 6faa701f0ce..08c33f3f67e 100644
--- a/scripts/utils.sh
+++ b/scripts/utils.sh
@@ -12,3 +12,11 @@ retry() {
done
return 1
}
+
+setup_db() {
+ bundle exec rake db:drop db:create db:schema:load db:migrate
+
+ if [ "$GITLAB_DATABASE" = "mysql" ]; then
+ bundle exec rake add_limits_mysql
+ fi
+}