Skip to content

Commit

Permalink
tec: Require PostgreSQL >= 12
Browse files Browse the repository at this point in the history
  • Loading branch information
marien-probesys committed Jan 11, 2024
1 parent 1ffbe9f commit b9917f0
Show file tree
Hide file tree
Showing 7 changed files with 10 additions and 8 deletions.
2 changes: 1 addition & 1 deletion .env
Original file line number Diff line number Diff line change
Expand Up @@ -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
Expand Down
6 changes: 3 additions & 3 deletions .github/workflows/tests.yml
Original file line number Diff line number Diff line change
Expand Up @@ -26,7 +26,7 @@ jobs:

services:
postgres:
image: postgres:11-alpine
image: postgres:12-alpine
env:
POSTGRES_USER: postgres
POSTGRES_PASSWORD: postgres
Expand All @@ -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
Expand All @@ -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 }}
Expand Down
2 changes: 2 additions & 0 deletions CHANGELOG.md
Original file line number Diff line number Diff line change
Expand Up @@ -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
Expand Down
2 changes: 1 addition & 1 deletion README.md
Original file line number Diff line number Diff line change
Expand Up @@ -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.

Expand Down
2 changes: 1 addition & 1 deletion docker/development/docker-compose.yml
Original file line number Diff line number Diff line change
Expand Up @@ -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
Expand Down
2 changes: 1 addition & 1 deletion docs/administrators/deploy.md
Original file line number Diff line number Diff line change
Expand Up @@ -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
Expand Down
2 changes: 1 addition & 1 deletion env.sample
Original file line number Diff line number Diff line change
Expand Up @@ -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"

########################################
Expand Down

0 comments on commit b9917f0

Please sign in to comment.