[gitlab] Use 'structure.sql' to init database

From 12.10 GitLab release, the instllation procedure changes to use the
'structure.sql' file instead of 'schema.rb' to set up the application
database.

Ref: gitlab-org/gitlab#211487
parent 52a2023a
...@@ -214,7 +214,11 @@ ...@@ -214,7 +214,11 @@
environment: environment:
RAILS_ENV: 'production' RAILS_ENV: 'production'
GITLAB_ROOT_EMAIL: '{{ gitlab_admin_email }}' GITLAB_ROOT_EMAIL: '{{ gitlab_admin_email }}'
command: 'bundle exec rake db:schema:load setup_postgresql db:seed_fu' command: '{{ "bundle exec rake "
+ ("db:schema:load setup_postgresql"
if (gitlab_version is version("12.10", "<"))
else "db:structure:load")
+ " db:seed_fu" }}'
args: args:
chdir: '{{ gitlab_ce_git_checkout }}' chdir: '{{ gitlab_ce_git_checkout }}'
become: True become: True
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment