Commit 37ca69533eb9cd96bf5b57a6b7e22b48751d2c24
1 parent
64c39ef2
Exists in
master
and in
11 other branches
Bundle a backup copy of db/schema.rb
Showing
1 changed file
with
5 additions
and
0 deletions
Show diff stats
config/software/gitlab-rails.rb
@@ -80,6 +80,11 @@ build do | @@ -80,6 +80,11 @@ build do | ||
80 | # Remove directories that will be created by `gitlab-ctl reconfigure` | 80 | # Remove directories that will be created by `gitlab-ctl reconfigure` |
81 | command "rm -rf log tmp public/uploads" | 81 | command "rm -rf log tmp public/uploads" |
82 | 82 | ||
83 | + # Because db/schema.rb is modified by `rake db:migrate` after installation, | ||
84 | + # keep a copy of schema.rb around in case we need it. (I am looking at you, | ||
85 | + # mysql-postgresql-converter.) | ||
86 | + cp "db/schema.rb db/schema.rb.bundled" | ||
87 | + | ||
83 | command "mkdir -p #{install_dir}/embedded/service/gitlab-rails" | 88 | command "mkdir -p #{install_dir}/embedded/service/gitlab-rails" |
84 | command "#{install_dir}/embedded/bin/rsync -a --delete --exclude=.git/*** --exclude=.gitignore ./ #{install_dir}/embedded/service/gitlab-rails/" | 89 | command "#{install_dir}/embedded/bin/rsync -a --delete --exclude=.git/*** --exclude=.gitignore ./ #{install_dir}/embedded/service/gitlab-rails/" |
85 | 90 |