Commit 3ce174c3 authored by Drew Blessing's avatar Drew Blessing

Fix restore warning message

parent 3b33cbb2
...@@ -20,6 +20,7 @@ v 8.10.0 (unreleased) ...@@ -20,6 +20,7 @@ v 8.10.0 (unreleased)
v 8.9.3 (unreleased) v 8.9.3 (unreleased)
- Decreased min width of screen to 1280px for pinned sidebar - Decreased min width of screen to 1280px for pinned sidebar
- Fix restore Rake task warning message output !4980
- Fix encrypted data backwards compatibility after upgrading attr_encrypted gem - Fix encrypted data backwards compatibility after upgrading attr_encrypted gem
- Update mobile button icons to be more inline with typical UI paradigms - Update mobile button icons to be more inline with typical UI paradigms
......
...@@ -33,12 +33,13 @@ namespace :gitlab do ...@@ -33,12 +33,13 @@ namespace :gitlab do
unless backup.skipped?('db') unless backup.skipped?('db')
unless ENV['force'] == 'yes' unless ENV['force'] == 'yes'
warning = warning = <<-MSG.strip_heredoc warning = <<-MSG.strip_heredoc
Before restoring the database we recommend removing all existing Before restoring the database we recommend removing all existing
tables to avoid future upgrade problems. Be aware that if you have tables to avoid future upgrade problems. Be aware that if you have
custom tables in the GitLab database these tables and all data will be custom tables in the GitLab database these tables and all data will be
removed. removed.
MSG MSG
puts warning.color(:red)
ask_to_continue ask_to_continue
puts 'Removing all tables. Press `Ctrl-C` within 5 seconds to abort'.color(:yellow) puts 'Removing all tables. Press `Ctrl-C` within 5 seconds to abort'.color(:yellow)
sleep(5) sleep(5)
......
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