From d35606947df1a0811ab622a03296e959e6040d27 Mon Sep 17 00:00:00 2001 From: Nick Carboni Date: Wed, 6 Feb 2019 15:12:29 -0500 Subject: [PATCH] Update the postgresql version check --- config/initializers/postgres_required_versions.rb | 8 ++++---- 1 file changed, 4 insertions(+), 4 deletions(-) diff --git a/config/initializers/postgres_required_versions.rb b/config/initializers/postgres_required_versions.rb index a9035745c653..48864425f63d 100644 --- a/config/initializers/postgres_required_versions.rb +++ b/config/initializers/postgres_required_versions.rb @@ -2,12 +2,12 @@ def initialize(*args) super - if postgresql_version < 90500 - raise "The version of PostgreSQL being connected to is incompatible with #{Vmdb::Appliance.PRODUCT_NAME} (9.5 required)" + if postgresql_version < 100000 + raise "The version of PostgreSQL being connected to is incompatible with #{Vmdb::Appliance.PRODUCT_NAME} (10 required)" end - if postgresql_version >= 90600 - msg = "The version of PostgreSQL being connected to is incompatible with #{Vmdb::Appliance.PRODUCT_NAME} (9.6+ is not supported yet)" + if postgresql_version >= 110000 + msg = "The version of PostgreSQL being connected to is incompatible with #{Vmdb::Appliance.PRODUCT_NAME} (11+ is not supported yet)" raise msg if Rails.env.production? && !ENV["UNSAFE_PG_VERSION"] $stderr.puts msg