From 37ca69533eb9cd96bf5b57a6b7e22b48751d2c24 Mon Sep 17 00:00:00 2001 From: Jacob Vosmaer Date: Mon, 19 May 2014 17:57:24 +0200 Subject: [PATCH] Bundle a backup copy of db/schema.rb --- config/software/gitlab-rails.rb | 5 +++++ 1 file changed, 5 insertions(+), 0 deletions(-) diff --git a/config/software/gitlab-rails.rb b/config/software/gitlab-rails.rb index 7e945b6..902dab9 100644 --- a/config/software/gitlab-rails.rb +++ b/config/software/gitlab-rails.rb @@ -80,6 +80,11 @@ build do # Remove directories that will be created by `gitlab-ctl reconfigure` command "rm -rf log tmp public/uploads" + # Because db/schema.rb is modified by `rake db:migrate` after installation, + # keep a copy of schema.rb around in case we need it. (I am looking at you, + # mysql-postgresql-converter.) + cp "db/schema.rb db/schema.rb.bundled" + command "mkdir -p #{install_dir}/embedded/service/gitlab-rails" command "#{install_dir}/embedded/bin/rsync -a --delete --exclude=.git/*** --exclude=.gitignore ./ #{install_dir}/embedded/service/gitlab-rails/" -- libgit2 0.21.2