Fix error message when Geo DB version does not match latest migration

parent 1f9970c9
...@@ -4,11 +4,11 @@ module Gitlab ...@@ -4,11 +4,11 @@ module Gitlab
def self.perform_checks def self.perform_checks
return '' unless Gitlab::Geo.secondary? return '' unless Gitlab::Geo.secondary?
database_version = self.get_database_version database_version = self.get_database_version.to_i
migration_version = self.get_migration_version migration_version = self.get_migration_version.to_i
if database_version.to_i != migration_version.to_i if database_version != migration_version
"Current database version (#{database_version}) does not match latest migration (#{migration_version})." "Current Geo database version (#{database_version}) does not match latest migration (#{migration_version})."
else else
'' ''
end end
......
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