Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Bump the minimum version of mysql2 gem to 0.5.0 #33876

Closed
wants to merge 1 commit into from
Closed
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Jump to
Jump to file
Failed to load files.
Diff view
Diff view
2 changes: 1 addition & 1 deletion Gemfile
Expand Up @@ -122,7 +122,7 @@ platforms :ruby, :mswin, :mswin64, :mingw, :x64_mingw do

group :db do
gem "pg", ">= 0.18.0", "< 1.1"
gem "mysql2", ">= 0.4.10"
gem "mysql2", "~> 0.5.0"
end
end

Expand Down
2 changes: 1 addition & 1 deletion Gemfile.lock
Expand Up @@ -531,7 +531,7 @@ DEPENDENCIES
libxml-ruby
listen (>= 3.0.5, < 3.2)
minitest-bisect
mysql2 (>= 0.4.10)
mysql2 (~> 0.5.0)
nokogiri (>= 1.8.1)
pg (>= 0.18.0, < 1.1)
psych (~> 3.0)
Expand Down
Expand Up @@ -3,7 +3,7 @@
require "active_record/connection_adapters/abstract_mysql_adapter"
require "active_record/connection_adapters/mysql/database_statements"

gem "mysql2", ">= 0.4.4", "< 0.6.0"
gem "mysql2", "~> 0.5.0"
require "mysql2"

module ActiveRecord
Expand Down
2 changes: 1 addition & 1 deletion railties/lib/rails/generators/app_base.rb
Expand Up @@ -299,7 +299,7 @@ def rails_version_specifier(gem_version = Rails.gem_version)
def gem_for_database
# %w( mysql postgresql sqlite3 oracle frontbase ibm_db sqlserver jdbcmysql jdbcsqlite3 jdbcpostgresql )
case options[:database]
when "mysql" then ["mysql2", [">= 0.4.4", "< 0.6.0"]]
when "mysql" then ["mysql2", ["~> 0.5.0"]]
when "postgresql" then ["pg", [">= 0.18", "< 2.0"]]
when "oracle" then ["activerecord-oracle_enhanced-adapter", nil]
when "frontbase" then ["ruby-frontbase", nil]
Expand Down