diff options
author | Robert Speicher <robert@gitlab.com> | 2016-03-22 16:24:55 +0000 |
---|---|---|
committer | Robert Speicher <robert@gitlab.com> | 2016-03-22 16:24:55 +0000 |
commit | 37093af6d6d5371a2930ea8aa6938d93e6c27949 (patch) | |
tree | 87c428825e29ee6e7b98bd806175b6e09662d18f /app/models/commit.rb | |
parent | 18c049886e0f9ad2d094f02483aea272d0e029fb (diff) | |
parent | 5516b6c47fa493cb792ffe501221fe397d1500ae (diff) | |
download | gitlab-ce-37093af6d6d5371a2930ea8aa6938d93e6c27949.tar.gz |
Merge branch 'drop_db_before_restore' into 'master'
Reload the schema before restoring a database backup
If a user tries to downgrade and restore after a failed upgrade,
the database may still contain newer tables. Reload the older
schema before restoring the database to avoid future upgrade
problems. Also, add a rake task to help users add migration
versions to the database so it's easier to recover from these
errors if they do occur. Fixes #13419
See merge request !2807
Diffstat (limited to 'app/models/commit.rb')
0 files changed, 0 insertions, 0 deletions