Skip to content

Commit

Permalink
Merge pull request ManageIQ#19090 from jrafanie/allow_ovirt_to_implem…
Browse files Browse the repository at this point in the history
…ent_their_own_pg_check_version

Allow ovirt to implement their own pg version check
  • Loading branch information
carbonin authored Aug 2, 2019
2 parents 9068f8c + b3f3f57 commit e530796
Showing 1 changed file with 3 additions and 0 deletions.
3 changes: 3 additions & 0 deletions config/initializers/postgres_required_versions.rb
Original file line number Diff line number Diff line change
@@ -1,7 +1,10 @@
ActiveRecord::ConnectionAdapters::PostgreSQLAdapter.prepend Module.new {
def initialize(*args)
super
check_version if respond_to?(:check_version)
end

def check_version
msg = "The version of PostgreSQL being connected to is incompatible with #{Vmdb::Appliance.PRODUCT_NAME} (10 required)"

if postgresql_version < 90500
Expand Down

0 comments on commit e530796

Please sign in to comment.