Skip to content
Projects
Groups
Snippets
Help
Loading...
Help
Support
Keyboard shortcuts
?
Submit feedback
Contribute to GitLab
Sign in / Register
Toggle navigation
G
gitlab-ce
Project overview
Project overview
Details
Activity
Releases
Repository
Repository
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Issues
0
Issues
0
List
Boards
Labels
Milestones
Merge Requests
1
Merge Requests
1
Analytics
Analytics
Repository
Value Stream
Wiki
Wiki
Snippets
Snippets
Members
Members
Collapse sidebar
Close sidebar
Activity
Graph
Create a new issue
Commits
Issue Boards
Open sidebar
nexedi
gitlab-ce
Commits
3ce174c3
Commit
3ce174c3
authored
Jun 28, 2016
by
Drew Blessing
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
Fix restore warning message
parent
3b33cbb2
Changes
2
Hide whitespace changes
Inline
Side-by-side
Showing
2 changed files
with
3 additions
and
1 deletion
+3
-1
CHANGELOG
CHANGELOG
+1
-0
lib/tasks/gitlab/backup.rake
lib/tasks/gitlab/backup.rake
+2
-1
No files found.
CHANGELOG
View file @
3ce174c3
...
@@ -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
...
...
lib/tasks/gitlab/backup.rake
View file @
3ce174c3
...
@@ -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
)
...
...
Write
Preview
Markdown
is supported
0%
Try again
or
attach a new file
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment