Project

General

Profile

Actions

Patch #40148

closed

Update activerecord-sqlserver-adapter to 7.1

Added by Yuichi HARADA 11 months ago. Updated 11 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 #1

Updated by Go MAEDA 11 months ago

Actions #2

Updated by Go MAEDA 11 months ago

  • Status changed from New to Closed
  • Assignee set to Go MAEDA
  • Target version set to 6.0.0

Committed the fix in r22665. Thank you.

Actions #3

Updated by Marius BĂLTEANU 11 months ago

  • Target version deleted (6.0.0)

Thanks!

I think this ticket should not be part of the changelog.

Actions

Also available in: Atom PDF