From b770a18bce8f3dee7814cb8f601c1987fa7667ef Mon Sep 17 00:00:00 2001 From: Martin Meyerhoff Date: Wed, 24 Jan 2024 11:13:33 +0100 Subject: [PATCH] Fix dummy app database.yml for ENV[DB] = sqlite3 This is the same fix as #5613, but this time for the dummy app `database.yml` template rather than for the install generator. I've now also tested this locally, and it seems to work. (cherry picked from commit 0a8c2b8ef7abfb5bf3a6e616673b9cbabe9ec0cb) --- core/lib/generators/spree/dummy/templates/rails/database.yml | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/core/lib/generators/spree/dummy/templates/rails/database.yml b/core/lib/generators/spree/dummy/templates/rails/database.yml index 8041f137b17..77a47f794db 100644 --- a/core/lib/generators/spree/dummy/templates/rails/database.yml +++ b/core/lib/generators/spree/dummy/templates/rails/database.yml @@ -3,7 +3,7 @@ 'mysql' when 'postgres', 'postgresql' 'postgres' - when 'sqlite', '', nil + when /sqlite3?/, '', nil 'sqlite' else raise "Invalid DB specified: #{ENV['DB']}"