From a11afb17462d9132f246d64513600091b59a8807 Mon Sep 17 00:00:00 2001 From: Alejandro Huertas Herrero Date: Wed, 29 Jun 2022 16:07:54 +0200 Subject: [PATCH] M #-: fix minor bug in onedb (#2202) --- src/onedb/onedb.rb | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/src/onedb/onedb.rb b/src/onedb/onedb.rb index 3f7bb483d4..c82de01524 100644 --- a/src/onedb/onedb.rb +++ b/src/onedb/onedb.rb @@ -760,14 +760,14 @@ class OneDB shared_upgrade = Gem::Version.new(shared) < Gem::Version.new(source) local_upgrade = Gem::Version.new(local) < Gem::Version.new(source_local) - # Both need to be lower than current version as sometimes the DB schema + # One needs to be lower than current version as sometimes the DB schema # have been increased only for local or shared. - return [true, 2] if shared_upgrade && local_upgrade + return [true, 2] if shared_upgrade || local_upgrade shared_new = Gem::Version.new(shared) > Gem::Version.new(source) local_new = Gem::Version.new(local) > Gem::Version.new(source_local) - # Both version should be lower or equal than source. + # Both version should be higher than source. return [true, 3] if shared_new || local_new [false, 0]