1
0
mirror of https://github.com/meineerde/redmine.git synced 2026-01-31 19:47:14 +00:00

Add support for Trilogy adapter (#42675).

Patch by Pavel Rosický (user:ahorek).


git-svn-id: https://svn.redmine.org/redmine/trunk@23753 e93f8b46-1217-0410-a6f0-8f06a7374b81
This commit is contained in:
Go MAEDA 2025-05-10 07:28:36 +00:00
parent 1b9698df2c
commit 6b06d5b171
2 changed files with 4 additions and 1 deletions

View File

@ -69,6 +69,9 @@ if File.exist?(database_file)
when /mysql2/
gem 'mysql2', '~> 0.5.0'
gem "with_advisory_lock"
when /trilogy/
gem 'trilogy', '~> 2.9.0'
gem "with_advisory_lock"
when /postgresql/
gem 'pg', '~> 1.5.3'
when /sqlite3/

View File

@ -58,7 +58,7 @@ module Redmine
# Returns true if the database is MySQL
def mysql?
/mysql/i.match?(ActiveRecord::Base.connection.adapter_name)
/mysql|trilogy/i.match?(ActiveRecord::Base.connection.adapter_name)
end
def mysql_version