Patch #28505

Update pg gem to 1.0

Added by Marius BALTEANU 16 days ago. Updated 12 days ago.

Status:NewStart date:
Priority:NormalDue date:
Assignee:-% Done:

0%

Category:Gems support
Target version:4.0.0

Description

Rails 5.1.5 supports pg gem 1.0

https://github.com/rails/rails/blob/v5.1.6/activerecord/CHANGELOG.md#rails-515-february-14-2018

Unfortunately, I can't run the test suite on PG as database engine.


Related issues

Duplicated by Redmine - Feature #27985: Support of gem pg 1.0.0 (PostgreSQL) Closed
Copied from Redmine - Patch #28504: Update mysql2 gem to 0.5.0 New

History

#1 Updated by Marius BALTEANU 16 days ago

  • Copied from Patch #28504: Update mysql2 gem to 0.5.0 added

#2 Updated by Go MAEDA 16 days ago

  • Duplicated by Feature #27985: Support of gem pg 1.0.0 (PostgreSQL) added

#3 Updated by Mizuki ISHIKAWA 13 days ago

  • pg 1.0.0
  • postgresql 9.5.3

I confirmed that all the tests are green under the above conditions.

diff --git a/Gemfile b/Gemfile
index a3f99a1ec..94dc31301 100644
--- a/Gemfile
+++ b/Gemfile
@@ -62,7 +62,7 @@ if File.exist?(database_file)
       when 'mysql2'
         gem "mysql2", "~> 0.4.6", :platforms => [:mri, :mingw, :x64_mingw]
       when /postgresql/
-        gem "pg", "~> 0.18.1", :platforms => [:mri, :mingw, :x64_mingw]
+        gem "pg", "~> 1.0.0", :platforms => [:mri, :mingw, :x64_mingw]
       when /sqlite3/
         gem "sqlite3", "~>1.3.12", :platforms => [:mri, :mingw, :x64_mingw]
       when /sqlserver/

#4 Updated by Go MAEDA 12 days ago

  • Target version set to 4.0.0

Mizuki ISHIKAWA wrote:

  • pg 1.0.0
  • postgresql 9.5.3

I confirmed that all the tests are green under the above conditions.

Thanks, setting target version to 4.0.0.

#5 Updated by Go MAEDA 12 days ago

pg 1.0.0 supports PostgreSQL 9.2 and later. If we update pg gem to 1.0.0, Redmine cannot run on some operating systems such as CentOS 6 (PostgreSQL is 8.4).

It may be too early to update to pg 1.0.0.

Also available in: Atom PDF