22 lines
655 B
Ruby
22 lines
655 B
Ruby
# Copyright (C) 2012-2021 Zammad Foundation, http://zammad-foundation.org/
|
|
|
|
require 'zammad/application/initializer/db_preflight_check/base'
|
|
require 'zammad/application/initializer/db_preflight_check/mysql2'
|
|
require 'zammad/application/initializer/db_preflight_check/postgresql'
|
|
require 'zammad/application/initializer/db_preflight_check/nulldb'
|
|
|
|
module Zammad
|
|
class Application
|
|
module Initializer
|
|
module DbPreflightCheck
|
|
def self.perform
|
|
adapter.perform
|
|
end
|
|
|
|
def self.adapter
|
|
@adapter ||= const_get(ActiveRecord::Base.connection_config[:adapter].capitalize)
|
|
end
|
|
end
|
|
end
|
|
end
|
|
end
|