2019-07-04 11:16:55 +00:00
|
|
|
require 'zammad/application/initializer/db_preflight_check/base'
|
|
|
|
require 'zammad/application/initializer/db_preflight_check/mysql2'
|
|
|
|
require 'zammad/application/initializer/db_preflight_check/postgresql'
|
2019-07-12 08:33:31 +00:00
|
|
|
require 'zammad/application/initializer/db_preflight_check/nulldb'
|
2019-07-04 11:16:55 +00:00
|
|
|
|
|
|
|
module Zammad
|
|
|
|
class Application
|
|
|
|
class 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
|