Commit f10bd091 authored by Yorick Peterse's avatar Yorick Peterse

Move EE code out of Gitlab::Database

parent 206d4e2c
...@@ -3,6 +3,9 @@ ...@@ -3,6 +3,9 @@
module EE module EE
module Gitlab module Gitlab
module Database module Database
extend ActiveSupport::Concern
class_methods do
extend ::Gitlab::Utils::Override extend ::Gitlab::Utils::Override
override :read_only? override :read_only?
...@@ -42,4 +45,5 @@ module EE ...@@ -42,4 +45,5 @@ module EE
end end
end end
end end
end
end end
...@@ -11,10 +11,6 @@ module Gitlab ...@@ -11,10 +11,6 @@ module Gitlab
# https://dev.mysql.com/doc/refman/5.7/en/datetime.html # https://dev.mysql.com/doc/refman/5.7/en/datetime.html
MAX_TIMESTAMP_VALUE = Time.at((1 << 31) - 1).freeze MAX_TIMESTAMP_VALUE = Time.at((1 << 31) - 1).freeze
class << self
prepend EE::Gitlab::Database # rubocop: disable Cop/InjectEnterpriseEditionModule
end
def self.config def self.config
ActiveRecord::Base.configurations[Rails.env] ActiveRecord::Base.configurations[Rails.env]
end end
...@@ -274,3 +270,5 @@ module Gitlab ...@@ -274,3 +270,5 @@ module Gitlab
end end
end end
end end
Gitlab::Database.prepend(EE::Gitlab::Database)
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment