Skip to content

Commit

Permalink
Merge pull request #19090 from jrafanie/allow_ovirt_to_implement_thei…
Browse files Browse the repository at this point in the history
…r_own_pg_check_version

Allow ovirt to implement their own pg version check

(cherry picked from commit e530796)

https://bugzilla.redhat.com/show_bug.cgi?id=1734770
  • Loading branch information
carbonin authored and simaishi committed Aug 2, 2019
1 parent fe43650 commit 493cf68
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 493cf68

Please sign in to comment.