From 4f47c47a7d857018b51062e21a18dd14038c9580 Mon Sep 17 00:00:00 2001 From: Evgeni Golov Date: Thu, 13 Jun 2024 12:53:05 +0200 Subject: [PATCH] ensure external DB is PostgreSQL 13 --- definitions/checks/foreman/validate_external_db_version.rb | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/definitions/checks/foreman/validate_external_db_version.rb b/definitions/checks/foreman/validate_external_db_version.rb index 52eb796dd..ab8b2770e 100644 --- a/definitions/checks/foreman/validate_external_db_version.rb +++ b/definitions/checks/foreman/validate_external_db_version.rb @@ -12,15 +12,15 @@ class ValidateExternalDbVersion < ForemanMaintain::Check def run current_db_version = feature(:foreman_database).db_version - fail!(db_upgrade_message(current_db_version)) if current_db_version.major < 12 + fail!(db_upgrade_message(current_db_version)) if current_db_version.major < 13 end def db_upgrade_message(db_version) product_name = feature(:instance).product_name "\n\n*** ERROR: Server is running on PostgreSQL #{db_version} database.\n"\ - "*** Newer version of #{product_name} supports only PostgreSQL version 12.\n"\ - "*** Before proceeding further, you must upgrade database to PostgreSQL 12.\n" + "*** Newer version of #{product_name} supports only PostgreSQL version 13.\n"\ + "*** Before proceeding further, you must upgrade database to PostgreSQL 13.\n" end end end