Project

General

Profile

Actions

Patch #43648

closed

Update activerecord-sqlserver-adapter to 8.1

Added by Yuichi HARADA 1 day ago. Updated 1 day ago.

Status:
Closed
Priority:
Normal
Assignee:
Category:
Gems support
Target version:
Start date:
Due date:
% Done:

0%

Estimated time:

Description

`bundle update` failed to r24248.

% bundle update
[DEPRECATED] Pass --all to `bundle update` to update everything
[DEPRECATED] Platform :mingw, :x64_mingw, :mswin will be removed in the future. Please use platform :windows instead.
Fetching gem metadata from https://rubygems.org/........
Resolving dependencies...
Could not find compatible versions

Because rails >= 8.1.1 depends on activerecord = 8.1.1
  and activerecord-sqlserver-adapter >= 8.0.0, < 8.1.0 depends on activerecord ~> 8.0.0,
  rails >= 8.1.1 is incompatible with activerecord-sqlserver-adapter >= 8.0.0, < 8.1.0.
So, because Gemfile depends on rails = 8.1.1
  and Gemfile depends on activerecord-sqlserver-adapter ~> 8.0.8,
  version solving has failed.

The patch below resolves this issue.

diff --git a/Gemfile b/Gemfile
index e524e3c9a..ec1bd461e 100644
--- a/Gemfile
+++ b/Gemfile
@@ -83,8 +83,8 @@ if File.exist?(database_file)
       when /sqlite3/
         gem 'sqlite3', '~> 2.7.4'
       when /sqlserver/
-        gem 'tiny_tds', '~> 2.1.2'
-        gem 'activerecord-sqlserver-adapter', '~> 8.0.8'
+        gem 'tiny_tds', '~> 3.4'
+        gem 'activerecord-sqlserver-adapter', '~> 8.1.2'
       else
         warn("Unknown database adapter `#{adapter}` found in config/database.yml, use Gemfile.local to load your own database gems")
       end

ref. https://rubygems.org/gems/activerecord-sqlserver-adapter


Related issues

Related to Redmine - Feature #43205: Update to Rails 8ClosedMarius BĂLTEANU

Actions
Actions #1

Updated by Go MAEDA 1 day ago

Actions #2

Updated by Go MAEDA 1 day ago

  • Target version set to 7.0.0
Actions #3

Updated by Go MAEDA 1 day ago

  • Status changed from New to Closed
  • Assignee set to Go MAEDA

Committed the patch in r24284. Thank you.

Actions

Also available in: Atom PDF