"Current Geo database version (#{database_version}) does not match latest migration (#{migration_version}).\n"\
return"Current Geo database version (#{database_version}) does not match latest migration (#{migration_version}).\n"\
"You may have to run `gitlab-rake geo:db:migrate` as root on the secondary."
'You may have to run `gitlab-rake geo:db:migrate` as root on the secondary.'
else
''
end
end
return'The Geo database is not configured to use Foreign Data Wrapper.'unlessGitlab::Geo::Fdw.enabled?
unlessGitlab::Geo::Fdw.fdw_up_to_date?
return"The Geo database has an outdated FDW remote schema.".tapdo|output|
output<<" It contains #{Gitlab::Geo::Fdw.count_tables} of #{ActiveRecord::Schema.tables.count} expected tables."unlessGitlab::Geo::Fdw.count_tables_match?