mirror of
https://github.com/OpenNebula/one.git
synced 2024-12-23 17:33:56 +03:00
Feature #4305: Remove --force option
(cherry picked from commit 1b41d5ee20
)
This commit is contained in:
parent
37624fcf96
commit
c489e193dd
@ -363,7 +363,7 @@ cmd=CommandParser::CmdParser.new(ARGV) do
|
||||
Migrates a SQLite OpenNebula Database to MySQL
|
||||
EOT
|
||||
|
||||
command :sqlite2mysql , sqlite2mysql_desc, :options=>[BACKUP, FORCE] do
|
||||
command :sqlite2mysql , sqlite2mysql_desc, :options=>[BACKUP] do
|
||||
begin
|
||||
options[:backend] = :sqlite
|
||||
sqlite = OneDB.new(options)
|
||||
|
@ -527,7 +527,6 @@ is preserved.
|
||||
sqlite_v = sqlite.backend.read_db_version
|
||||
mysql_v = @backend.read_db_version
|
||||
|
||||
if !options[:force]
|
||||
match = true
|
||||
match = false if sqlite_v[:version] != mysql_v[:version]
|
||||
match = false if sqlite_v[:local_version] != mysql_v[:local_version]
|
||||
@ -542,7 +541,6 @@ is preserved.
|
||||
|
||||
raise err_msg
|
||||
end
|
||||
end
|
||||
|
||||
backup(options[:backup], options)
|
||||
|
||||
|
Loading…
Reference in New Issue
Block a user