From 1de6663ceb2187fc47e6cc493746af89933d01cc Mon Sep 17 00:00:00 2001 From: Go MAEDA Date: Thu, 19 Dec 2024 01:08:21 +0000 Subject: 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 --- Gemfile | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) 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/ -- cgit v1.2.3