8efdf75bcb
We have run into permission issues with MySQL triggers in #36633 that would have been caught earlier either if our migration tests or GitLab QA tests had been testing against non-superuser users. This change creates a non-superuser that has access to the GitLab test database and uses that. Closes #39932
8 lines
209 B
Bash
8 lines
209 B
Bash
#!/bin/bash
|
|
|
|
psql -h postgres -U postgres postgres <<EOF
|
|
DROP DATABASE IF EXISTS gitlabhq_test;
|
|
CREATE DATABASE gitlabhq_test;
|
|
CREATE USER gitlab;
|
|
GRANT ALL PRIVILEGES ON DATABASE gitlabhq_test TO gitlab;
|
|
EOF
|