Project

General

Profile

Actions

Patch #40148

closed

Update activerecord-sqlserver-adapter to 7.1

Added by Yuichi HARADA 10 months ago. Updated 10 months ago.

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

0%

Estimated time:

Description

Failed `bundle update`.

% bundle update
Fetching gem metadata from https://rubygems.org/.........
Resolving dependencies...
Could not find compatible versions

Because rails >= 7.1.3 depends on activerecord = 7.1.3
  and activerecord-sqlserver-adapter >= 6.1.0.0.rc1, < 7.0.0.0.rc1 depends on activerecord ~> 6.1.0,
  rails >= 7.1.3 is incompatible with activerecord-sqlserver-adapter >= 6.1.0.0.rc1, < 7.0.0.0.rc1.
So, because Gemfile depends on rails = 7.1.3
  and Gemfile depends on activerecord-sqlserver-adapter ~> 6.1.0,
  version solving has failed.
%

The patch below resolves this issue.

diff --git a/Gemfile b/Gemfile
index 1479fa42a9..01a530d4fb 100644
--- a/Gemfile
+++ b/Gemfile
@@ -75,7 +75,7 @@ if File.exist?(database_file)
         gem 'sqlite3', '~> 1.7.0'
       when /sqlserver/
         gem 'tiny_tds', '~> 2.1.2'
-        gem 'activerecord-sqlserver-adapter', '~> 6.1.0'
+        gem 'activerecord-sqlserver-adapter', '~> 7.1.2'
       else
         warn("Unknown database adapter `#{adapter}` found in config/database.yml, use Gemfile.local to load your own database gems")
       end

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


Related issues

Related to Redmine - Feature #36320: Migrate to Rails 7.2ClosedMarius BĂLTEANU

Actions
Actions

Also available in: Atom PDF