From 807048530ac014fcf5bb6aa0e45d6e698035ca23 Mon Sep 17 00:00:00 2001 From: Martin Meyerhoff Date: Tue, 23 Jan 2024 13:24:54 +0100 Subject: [PATCH] Allow "sqlite3" as ENV["DB"] Since solidus-orbs-extension v0.10.0, the CI runner will set the ENV var for sqlite to be `sqlite3`, which currently raises an error. --- 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']}"