1
0
mirror of https://github.com/LaCasemate/fab-manager.git synced 2025-01-29 18:52:22 +01:00

use postgres 9.6 instead of 11

This commit is contained in:
Sylvain 2019-10-09 09:52:58 +02:00
parent ae368cb496
commit 13c730eaad
5 changed files with 10 additions and 10 deletions

View File

@ -1,6 +1,6 @@
# Changelog Fab Manager
- Upgraded PostgreSQL from 9.4 to 11
- Upgraded PostgreSQL from 9.4 to 9.6
- Optional reCaptcha checkbox in sign-up form
- Ability to configure and export the accounting data to the ACD accounting software
- Compute the VAT per item in each invoices, instead of globally

View File

@ -13,7 +13,7 @@ FabManager is the Fab Lab management solution. It provides a comprehensive, web-
4. [Setup a development environment](#setup-a-development-environment)<br/>
4.1. [General Guidelines](#general-guidelines)<br/>
5. [PostgreSQL](#postgresql)<br/>
5.1. [Install PostgreSQL 9.4](#setup-postgresql)
5.1. [Install PostgreSQL 9.6](#setup-postgresql)
6. [ElasticSearch](#elasticsearch)<br/>
6.1. [Install ElasticSearch](#setup-elasticsearch)<br/>
6.2. [Rebuild statistics](#rebuild-stats)<br/>
@ -43,7 +43,7 @@ FabManager is a Ruby on Rails / AngularJS web application that runs on the follo
- Redis 2.8.4+
- Sidekiq 3.3.4+
- Elasticsearch 5.6
- PostgreSQL 9.4
- PostgreSQL 9.6
<a name="contributing"></a>
## Contributing
@ -193,7 +193,7 @@ Optionally, you can use a virtual development environment that relies on Vagrant
## PostgreSQL
<a name="setup-postgresql"></a>
### Install PostgreSQL 9.4
### Install PostgreSQL 9.6
We will use docker to easily install the required version of PostgreSQL.
@ -208,7 +208,7 @@ We will use docker to easily install the required version of PostgreSQL.
-v $(pwd)/.docker/postgresql:/var/lib/postgresql/data \
--network fabmanager --ip 172.18.0.2 \
-p 5432:5432 \
postgres:9.4
postgres:9.6
```
3. Configure fab-manager to use it.

View File

@ -2,7 +2,7 @@
## Automatic upgrade
Fab-manager release 4.2.0 has upgraded its dependency to PostgreSQL from version 9.4 to version 11 as the previous won't be maintained from from february 2020.
Fab-manager release 4.2.0 has upgraded its dependency to PostgreSQL from version 9.4 to version 9.6 as the previous won't be maintained from from february 2020.
To keep using fab-manager you need to upgrade your installation with the new version.
We've wrote a script to automate the process while keeping your data integrity, but there's some requirements to understand before running it.
@ -25,4 +25,4 @@ cd /apps/fabmanager
For instructions regarding a manual upgrade, please refer to the official documentation:
- https://www.postgresql.org/docs/11/upgrading.html
- https://www.postgresql.org/docs/9.6/upgrading.html

View File

@ -23,7 +23,7 @@ services:
restart: always
postgres:
image: postgres:9.4
image: postgres:9.6
volumes:
- ${PWD}/postgresql:/var/lib/postgresql/data
restart: always

View File

@ -93,7 +93,7 @@ pg_upgrade()
{
docker run --rm \
-v "$PG_PATH:/var/lib/postgresql/$OLD/data" \
-v "$PG_PATH-$NEW:/var/lib/postgresql/$NEW/data" \
-v "$NEW_PATH:/var/lib/postgresql/$NEW/data" \
"tianon/postgres-upgrade:$OLD-to-$NEW" --link
}
@ -129,7 +129,7 @@ upgrade_postgres()
if [[ "$confirm" = "y" ]]
then
OLD='9.4'
NEW='11'
NEW='9.6'
read_path
test_free_space
prepare_path