From b9917f09388df811f96c387974a3f24b2bca8a7f Mon Sep 17 00:00:00 2001 From: Marien Fressinaud Date: Thu, 11 Jan 2024 12:07:16 +0100 Subject: [PATCH] tec: Require PostgreSQL >= 12 --- .env | 2 +- .github/workflows/tests.yml | 6 +++--- CHANGELOG.md | 2 ++ README.md | 2 +- docker/development/docker-compose.yml | 2 +- docs/administrators/deploy.md | 2 +- env.sample | 2 +- 7 files changed, 10 insertions(+), 8 deletions(-) diff --git a/.env b/.env index a3aff06c..9049110a 100644 --- a/.env +++ b/.env @@ -6,7 +6,7 @@ APP_ENV=dev APP_SECRET=97cb420d0d43c4c786c51225db0b6018 APP_BASE_URL=http://localhost:8000 -DATABASE_URL="postgresql://postgres:postgres@pgsql:5432/bileto?serverVersion=11&charset=utf8" +DATABASE_URL="postgresql://postgres:postgres@pgsql:5432/bileto?serverVersion=12&charset=utf8" # DATABASE_URL="mysql://root:mariadb@mariadb:3306/bileto?serverVersion=10.4.29-MariaDB" MAILER_DSN=smtp://support%40example.com:secret@mailserver:3025 diff --git a/.github/workflows/tests.yml b/.github/workflows/tests.yml index 93f3f396..d6c7d8e8 100644 --- a/.github/workflows/tests.yml +++ b/.github/workflows/tests.yml @@ -26,7 +26,7 @@ jobs: services: postgres: - image: postgres:11-alpine + image: postgres:12-alpine env: POSTGRES_USER: postgres POSTGRES_PASSWORD: postgres @@ -38,7 +38,7 @@ jobs: --health-timeout 5s --health-retries 5 - name: Tests over PostgreSQL 11 + name: Tests over PostgreSQL 12 steps: - uses: actions/checkout@v3 @@ -64,7 +64,7 @@ jobs: - name: Run the test suite run: make test env: - DATABASE_URL: "postgresql://postgres:postgres@127.0.0.1:5432/bileto?serverVersion=11&charset=utf8" + DATABASE_URL: "postgresql://postgres:postgres@127.0.0.1:5432/bileto?serverVersion=12&charset=utf8" mariadb: runs-on: ${{ matrix.operating-system }} diff --git a/CHANGELOG.md b/CHANGELOG.md index 14d0f8bd..2c258be5 100644 --- a/CHANGELOG.md +++ b/CHANGELOG.md @@ -14,6 +14,8 @@ Bileto uses [PHP-IMAP](https://github.com/Webklex/php-imap) which should make th Unfortunately, the library doesn't decode email subjects and attachments correctly by itself. It works a lot better with the module installed. +PostgreSQL >= 12 is now required. If you’re still using PostgreSQL 11, you must upgrade to a newer version. + ## 2023-11-23 - 0.6.0-alpha ### New diff --git a/README.md b/README.md index 22fc7914..ce5553e8 100644 --- a/README.md +++ b/README.md @@ -26,7 +26,7 @@ It is not advised to use Bileto in production yet. ![Screenshot of the tickets page of Bileto showing 3 opened tickets and a search form.](public/screenshot.webp) It is written with [Symfony](https://symfony.com/) and works with [PHP](https://www.php.net/) 8.2 or 8.3. -The supported databases are PostgreSQL >= 11 and MariaDB >= 10.4. +The supported databases are PostgreSQL >= 12 and MariaDB >= 10.4. It is developed by [Probesys](https://probesys.com) as a community project. diff --git a/docker/development/docker-compose.yml b/docker/development/docker-compose.yml index 53b693b7..6c00c74c 100644 --- a/docker/development/docker-compose.yml +++ b/docker/development/docker-compose.yml @@ -50,7 +50,7 @@ services: - ./nginx.conf:/etc/nginx/conf.d/default.conf:z pgsql: - image: postgres:11-alpine + image: postgres:12-alpine restart: unless-stopped environment: POSTGRES_USER: postgres diff --git a/docs/administrators/deploy.md b/docs/administrators/deploy.md index c9592793..9e07e108 100644 --- a/docs/administrators/deploy.md +++ b/docs/administrators/deploy.md @@ -28,7 +28,7 @@ PHP 8.2.13 ... ``` Check your database version. -If you use PostgreSQL (must be >= 11): +If you use PostgreSQL (must be >= 12): ```console $ psql --version diff --git a/env.sample b/env.sample index 845e56f1..d254c26e 100644 --- a/env.sample +++ b/env.sample @@ -26,7 +26,7 @@ APP_BASE_URL=https://example.org # URL to connect to the database. # Uncomment one of the two following line (depending on your database) and # adapt the credentials and the serverVersion. -# DATABASE_URL="postgresql://user:password@localhost:5432/bileto_production?serverVersion=11&charset=utf8" +# DATABASE_URL="postgresql://user:password@localhost:5432/bileto_production?serverVersion=12&charset=utf8" # DATABASE_URL="mysql://user:password@localhost:3306/bileto_production?serverVersion=10.4.29-MariaDB" ########################################