summaryrefslogtreecommitdiff
path: root/scripts
diff options
context:
space:
mode:
authorStan Hu <stanhu@gmail.com>2017-12-27 05:41:28 -0800
committerStan Hu <stanhu@gmail.com>2018-01-02 12:44:51 -0800
commitad88e3f88d2ac287f5a95952f95da4feae90944e (patch)
treeb4cbd1c5722fdfe2c15ac24588c8c74b94a21f22 /scripts
parentff077cf7dc5cfd7c6c6206d801ea3f326f7af1aa (diff)
downloadgitlab-ce-ad88e3f88d2ac287f5a95952f95da4feae90944e.tar.gz
Fix `rake db:seed_fu` not doing anything in CIsh-fix-seed-fu-ci
The default behavior of seed_fu is to load the fixtures using the RAILS_ENV environment. In CI, since we set RAILS_ENV=test, nothing is ever loaded. Instead of `rake db:seed_fu`, use `rake gitlab:setup`, which sets up MySQL properly with limits. Closes #41517
Diffstat (limited to 'scripts')
-rw-r--r--scripts/create_mysql_user.sh2
1 files changed, 1 insertions, 1 deletions
diff --git a/scripts/create_mysql_user.sh b/scripts/create_mysql_user.sh
index 28f6cfb50ae..286b1325f1d 100644
--- a/scripts/create_mysql_user.sh
+++ b/scripts/create_mysql_user.sh
@@ -1,7 +1,7 @@
#!/bin/bash
mysql --user=root --host=mysql <<EOF
-CREATE DATABASE IF NOT EXISTS gitlabhq_test;
+CREATE DATABASE IF NOT EXISTS gitlabhq_test DEFAULT CHARACTER SET utf8mb4 COLLATE utf8mb4_general_ci;
CREATE USER IF NOT EXISTS 'gitlab'@'%';
GRANT ALL PRIVILEGES ON gitlabhq_test.* TO 'gitlab'@'%';
FLUSH PRIVILEGES;