Skip to content

Commit

Permalink
Fail early if running old sqlite
Browse files Browse the repository at this point in the history
  • Loading branch information
segiddins committed Oct 2, 2024
1 parent c0e563f commit e763968
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion lib/gemstash/env.rb
Original file line number Diff line number Diff line change
Expand Up @@ -130,7 +130,7 @@ def db
Sequel.connect("jdbc:sqlite:#{db_path}", config.database_connection_config)
else
Sequel.connect("sqlite://#{CGI.escape(db_path)}", config.database_connection_config)
end
end.tap {|db| raise "SQLite 3.44+ required, have #{db.sqlite_version}" unless db.sqlite_version >= 34_400 }
when "postgres", "mysql", "mysql2"
db_url = config[:db_url]
raise "Missing DB URL" unless db_url
Expand Down

0 comments on commit e763968

Please sign in to comment.