Commit a5ce8802487f49c4af79a1fa4ca1e71176a68bc4

Authored by Jacob Vosmaer
1 parent 4dc7be53

Include `rake db:migrate` in the reconfigure run

files/gitlab-cookbooks/gitlab/attributes/default.rb
@@ -57,6 +57,7 @@ default['gitlab']['gitlab-core']['support_email'] = "support@example.com" @@ -57,6 +57,7 @@ default['gitlab']['gitlab-core']['support_email'] = "support@example.com"
57 default['gitlab']['gitlab-core']['uploads_directory'] = "/var/opt/gitlab/uploads" 57 default['gitlab']['gitlab-core']['uploads_directory'] = "/var/opt/gitlab/uploads"
58 default['gitlab']['gitlab-core']['rate_limit_requests_per_period'] = 10 58 default['gitlab']['gitlab-core']['rate_limit_requests_per_period'] = 10
59 default['gitlab']['gitlab-core']['rate_limit_period'] = 60 59 default['gitlab']['gitlab-core']['rate_limit_period'] = 60
  60 +default['gitlab']['gitlab-core']['automatic_migrations'] = true
60 61
61 62
62 #### 63 ####
files/gitlab-cookbooks/gitlab/recipes/database_migrations.rb
@@ -19,3 +19,8 @@ execute "initialize database" do @@ -19,3 +19,8 @@ execute "initialize database" do
19 command "/opt/gitlab/bin/gitlab-rake db:schema:load db:seed_fu" 19 command "/opt/gitlab/bin/gitlab-rake db:schema:load db:seed_fu"
20 action :nothing 20 action :nothing
21 end 21 end
  22 +
  23 +execute "migrate database" do
  24 + command "/opt/gitlab/bin/gitlab-rake db:migrate"
  25 + only_if node['gitlab']['gitlab-core']['automatic_migrations']
  26 +end