mirror of
https://github.com/scinote-eln/scinote-web.git
synced 2025-01-24 08:41:56 +08:00
Switch to PostgreSQL version 15 [SCI-8633] (#5722)
This commit is contained in:
parent
388915b6d9
commit
e24d5f13fc
4 changed files with 4 additions and 4 deletions
2
Gemfile
2
Gemfile
|
@ -10,7 +10,7 @@ gem 'bootstrap_form', '~> 2.7.0'
|
||||||
gem 'devise', '~> 4.8.1'
|
gem 'devise', '~> 4.8.1'
|
||||||
gem 'devise_invitable'
|
gem 'devise_invitable'
|
||||||
gem 'figaro'
|
gem 'figaro'
|
||||||
gem 'pg', '~> 1.1'
|
gem 'pg', '~> 1.5'
|
||||||
gem 'pg_search' # PostgreSQL full text search
|
gem 'pg_search' # PostgreSQL full text search
|
||||||
gem 'psych', '< 4.0'
|
gem 'psych', '< 4.0'
|
||||||
gem 'rails', '~> 7.0.5'
|
gem 'rails', '~> 7.0.5'
|
||||||
|
|
|
@ -46,7 +46,7 @@ class AddProtocolVersioning < ActiveRecord::Migration[6.1]
|
||||||
execute(
|
execute(
|
||||||
'UPDATE "protocols" SET "published_by_id" = "added_by_id" ' \
|
'UPDATE "protocols" SET "published_by_id" = "added_by_id" ' \
|
||||||
'WHERE "protocols"."protocol_type" = 5 ' \
|
'WHERE "protocols"."protocol_type" = 5 ' \
|
||||||
'AND "protocols"."visibility" = 1' \
|
'AND "protocols"."visibility" = 1 ' \
|
||||||
'AND "protocols"."published_by_id" IS NULL;'
|
'AND "protocols"."published_by_id" IS NULL;'
|
||||||
)
|
)
|
||||||
end
|
end
|
||||||
|
|
|
@ -2,7 +2,7 @@ version: '2'
|
||||||
services:
|
services:
|
||||||
db:
|
db:
|
||||||
container_name: scinote_db_production
|
container_name: scinote_db_production
|
||||||
image: postgres:11
|
image: postgres:15
|
||||||
volumes:
|
volumes:
|
||||||
- scinote_production_postgres:/var/lib/postgresql/data
|
- scinote_production_postgres:/var/lib/postgresql/data
|
||||||
environment:
|
environment:
|
||||||
|
|
|
@ -2,7 +2,7 @@ version: '2'
|
||||||
services:
|
services:
|
||||||
db:
|
db:
|
||||||
container_name: scinote_db_development
|
container_name: scinote_db_development
|
||||||
image: postgres:11
|
image: postgres:15
|
||||||
volumes:
|
volumes:
|
||||||
- scinote_development_postgres:/var/lib/postgresql/data
|
- scinote_development_postgres:/var/lib/postgresql/data
|
||||||
ports:
|
ports:
|
||||||
|
|
Loading…
Reference in a new issue