2022-01-01 13:38:12 +00:00
|
|
|
# Copyright (C) 2012-2022 Zammad Foundation, https://zammad-foundation.org/
|
2021-06-01 12:20:20 +00:00
|
|
|
|
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
|
2021-07-21 12:00:13 +00:00
|
|
|
module Initializer
|
2021-06-23 11:35:27 +00:00
|
|
|
module DbPreflightCheck
|
2019-07-04 11:16:55 +00:00
|
|
|
def self.perform
|
|
|
|
adapter.perform
|
|
|
|
end
|
|
|
|
|
|
|
|
def self.adapter
|
|
|
|
@adapter ||= const_get(ActiveRecord::Base.connection_config[:adapter].capitalize)
|
|
|
|
end
|
|
|
|
end
|
|
|
|
end
|
|
|
|
end
|
|
|
|
end
|