summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorGo MAEDA <maeda@farend.jp>2024-12-19 01:08:21 +0000
committerGo MAEDA <maeda@farend.jp>2024-12-19 01:08:21 +0000
commit1de6663ceb2187fc47e6cc493746af89933d01cc (patch)
tree22eba364c3247ef493879b795bad717dfdef6615
parent331b955f47412e3b449d6ca6c5b86ffc7b708f28 (diff)
downloadredmine-1de6663ceb2187fc47e6cc493746af89933d01cc.tar.gz
redmine-1de6663ceb2187fc47e6cc493746af89933d01cc.zip
Fix: Allow database adapter name "mysql2" in config/database.yml to be quoted (#42013).
In Redmine 6.0.2 and 5.1.5, due to the change introduced in r23269, using the quoted adapter name `"mysql2"` causes Redmine to fail to start with the error: "Unknown database adapter `"mysql2"` found in config/database.yml". git-svn-id: https://svn.redmine.org/redmine/trunk@23408 e93f8b46-1217-0410-a6f0-8f06a7374b81
-rw-r--r--Gemfile2
1 files changed, 1 insertions, 1 deletions
diff --git a/Gemfile b/Gemfile
index 2f075c6c3..478084c20 100644
--- a/Gemfile
+++ b/Gemfile
@@ -69,7 +69,7 @@ if File.exist?(database_file)
if adapters.any?
adapters.each do |adapter|
case adapter.strip
- when 'mysql2'
+ when /mysql2/
gem 'mysql2', '~> 0.5.0'
gem "with_advisory_lock"
when /postgresql/