Project

General

Profile

Actions

Patch #43266

closed

Update activerecord-sqlserver-adapter to 8.0

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

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

0%

Estimated time:

Description

`bundle update` failed to r24016.

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

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

The patch below resolves this issue.

diff --git a/Gemfile b/Gemfile
index 189004a83b..e7f12f037b 100644
--- a/Gemfile
+++ b/Gemfile
@@ -82,7 +82,7 @@ if File.exist?(database_file)
         gem 'sqlite3', '~> 2.5.0'
       when /sqlserver/
         gem 'tiny_tds', '~> 2.1.2'
-        gem 'activerecord-sqlserver-adapter', '~> 7.2.0'
+        gem 'activerecord-sqlserver-adapter', '~> 8.0.8'
       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 8NewMarius BĂLTEANU

Actions
Actions #1

Updated by Go MAEDA 2 days ago

Actions #2

Updated by Go MAEDA 2 days ago

  • Target version set to 7.0.0
Actions #3

Updated by Marius BĂLTEANU 1 day ago

  • Status changed from New to Resolved
  • Assignee set to Marius BĂLTEANU
Actions #4

Updated by Marius BĂLTEANU 1 day ago

  • Status changed from Resolved to Closed
  • Target version deleted (7.0.0)
Actions

Also available in: Atom PDF