Skip to content

Commit

Permalink
Merge pull request #179 from jsuchome/no-database
Browse files Browse the repository at this point in the history
upgrade: Hide the database step when it is not used
  • Loading branch information
Jiří Suchomel committed Dec 7, 2018
2 parents be66106 + 92ba0aa commit 2e338fa
Showing 1 changed file with 3 additions and 2 deletions.
5 changes: 3 additions & 2 deletions lib/crowbar/client/app/upgrade.rb
Original file line number Diff line number Diff line change
Expand Up @@ -307,8 +307,7 @@ def repocheck(component)
catch_errors(e)
end

desc "database MODE",
"Initialize Crowbar database"
desc "database MODE", "Initialize Crowbar database"

long_desc <<-LONGDESC
`database MODE` will set up the Crowbar database and perform the necessary migrations
Expand Down Expand Up @@ -382,6 +381,8 @@ def database(mode)
catch_errors(e)
end

remove_command :database unless Config.defaults[:upgrade_versions] == "6-to-7"

desc "mode UPGRADEMODE",
"Set/Get the upgrade mode (normal|non_disruptive)"

Expand Down

0 comments on commit 2e338fa

Please sign in to comment.