Allow sqlite3 to float to version 2
This commit is contained in:
parent
c53244323a
commit
fd1c635d2f
2
Gemfile
2
Gemfile
@ -154,7 +154,7 @@ platforms :ruby, :windows do
|
|||||||
gem "racc", ">=1.4.6", require: false
|
gem "racc", ">=1.4.6", require: false
|
||||||
|
|
||||||
# Active Record.
|
# Active Record.
|
||||||
gem "sqlite3", "~> 1.6", ">= 1.6.6"
|
gem "sqlite3", ">= 1.6.6"
|
||||||
|
|
||||||
group :db do
|
group :db do
|
||||||
gem "pg", "~> 1.3"
|
gem "pg", "~> 1.3"
|
||||||
|
10
Gemfile.lock
10
Gemfile.lock
@ -327,7 +327,7 @@ GEM
|
|||||||
mixlib-shellout
|
mixlib-shellout
|
||||||
mini_magick (4.12.0)
|
mini_magick (4.12.0)
|
||||||
mini_mime (1.1.5)
|
mini_mime (1.1.5)
|
||||||
mini_portile2 (2.8.5)
|
mini_portile2 (2.8.6)
|
||||||
minitest (5.21.1)
|
minitest (5.21.1)
|
||||||
minitest-bisect (1.7.0)
|
minitest-bisect (1.7.0)
|
||||||
minitest-server (~> 1.0)
|
minitest-server (~> 1.0)
|
||||||
@ -525,10 +525,10 @@ GEM
|
|||||||
actionpack (>= 5.2)
|
actionpack (>= 5.2)
|
||||||
activesupport (>= 5.2)
|
activesupport (>= 5.2)
|
||||||
sprockets (>= 3.0.0)
|
sprockets (>= 3.0.0)
|
||||||
sqlite3 (1.7.0)
|
sqlite3 (2.0.0)
|
||||||
mini_portile2 (~> 2.8.0)
|
mini_portile2 (~> 2.8.0)
|
||||||
sqlite3 (1.7.0-x86_64-darwin)
|
sqlite3 (2.0.0-x86_64-darwin)
|
||||||
sqlite3 (1.7.0-x86_64-linux)
|
sqlite3 (2.0.0-x86_64-linux-gnu)
|
||||||
stackprof (0.2.25)
|
stackprof (0.2.25)
|
||||||
stimulus-rails (1.3.0)
|
stimulus-rails (1.3.0)
|
||||||
railties (>= 6.0.0)
|
railties (>= 6.0.0)
|
||||||
@ -654,7 +654,7 @@ DEPENDENCIES
|
|||||||
sidekiq
|
sidekiq
|
||||||
sneakers
|
sneakers
|
||||||
sprockets-rails (>= 2.0.0)
|
sprockets-rails (>= 2.0.0)
|
||||||
sqlite3 (~> 1.6, >= 1.6.6)
|
sqlite3 (>= 1.6.6)
|
||||||
stackprof
|
stackprof
|
||||||
stimulus-rails
|
stimulus-rails
|
||||||
sucker_punch
|
sucker_punch
|
||||||
|
@ -1,3 +1,7 @@
|
|||||||
|
* Allow `Sqlite3Adapter` to use `sqlite3` gem version `2.x`
|
||||||
|
|
||||||
|
*Mike Dalessio*
|
||||||
|
|
||||||
* Allow `ActiveRecord::Base#pluck` to accept hash values
|
* Allow `ActiveRecord::Base#pluck` to accept hash values
|
||||||
|
|
||||||
```ruby
|
```ruby
|
||||||
|
@ -11,7 +11,7 @@
|
|||||||
require "active_record/connection_adapters/sqlite3/schema_dumper"
|
require "active_record/connection_adapters/sqlite3/schema_dumper"
|
||||||
require "active_record/connection_adapters/sqlite3/schema_statements"
|
require "active_record/connection_adapters/sqlite3/schema_statements"
|
||||||
|
|
||||||
gem "sqlite3", "~> 1.4"
|
gem "sqlite3", ">= 1.4"
|
||||||
require "sqlite3"
|
require "sqlite3"
|
||||||
|
|
||||||
module ActiveRecord
|
module ActiveRecord
|
||||||
|
@ -16,7 +16,7 @@ def gem_for_database(database = options[:database])
|
|||||||
when "mysql" then ["mysql2", ["~> 0.5"]]
|
when "mysql" then ["mysql2", ["~> 0.5"]]
|
||||||
when "trilogy" then ["trilogy", ["~> 2.7"]]
|
when "trilogy" then ["trilogy", ["~> 2.7"]]
|
||||||
when "postgresql" then ["pg", ["~> 1.1"]]
|
when "postgresql" then ["pg", ["~> 1.1"]]
|
||||||
when "sqlite3" then ["sqlite3", ["~> 1.4"]]
|
when "sqlite3" then ["sqlite3", [">= 1.4"]]
|
||||||
when "oracle" then ["activerecord-oracle_enhanced-adapter", nil]
|
when "oracle" then ["activerecord-oracle_enhanced-adapter", nil]
|
||||||
when "sqlserver" then ["activerecord-sqlserver-adapter", nil]
|
when "sqlserver" then ["activerecord-sqlserver-adapter", nil]
|
||||||
when "jdbcmysql" then ["activerecord-jdbcmysql-adapter", nil]
|
when "jdbcmysql" then ["activerecord-jdbcmysql-adapter", nil]
|
||||||
|
@ -441,7 +441,7 @@ def test_config_database_is_added_by_default
|
|||||||
if defined?(JRUBY_VERSION)
|
if defined?(JRUBY_VERSION)
|
||||||
assert_gem "activerecord-jdbcsqlite3-adapter"
|
assert_gem "activerecord-jdbcsqlite3-adapter"
|
||||||
else
|
else
|
||||||
assert_gem "sqlite3", '"~> 1.4"'
|
assert_gem "sqlite3", '">= 1.4"'
|
||||||
end
|
end
|
||||||
end
|
end
|
||||||
|
|
||||||
|
@ -128,7 +128,7 @@ class ChangeGeneratorTest < Rails::Generators::TestCase
|
|||||||
|
|
||||||
assert_file("Gemfile") do |content|
|
assert_file("Gemfile") do |content|
|
||||||
assert_match "# Use sqlite3 as the database for Active Record", content
|
assert_match "# Use sqlite3 as the database for Active Record", content
|
||||||
assert_match 'gem "sqlite3", "~> 1.4"', content
|
assert_match 'gem "sqlite3", ">= 1.4"', content
|
||||||
end
|
end
|
||||||
|
|
||||||
assert_file("Dockerfile") do |content|
|
assert_file("Dockerfile") do |content|
|
||||||
|
Loading…
Reference in New Issue
Block a user