doc: Ajoute des instructions pour PostgreSQL 15
continuous-integration/drone/push Build is passing Details

ci/docdeployer
Clément FRÉVILLE 2 years ago
parent d407f1f923
commit ff636aaff0

@ -36,13 +36,6 @@ steps:
- name: deploy-doc
image: hub.codefirst.iut.uca.fr/maxime.batista/codefirst-docdeployer
failure: ignore
volumes:
- name: docs
path: /docs
commands:
- /entrypoint.sh --type swagger --loc oki-api.yaml --branch 'main|ci/*'
- /entrypoint.sh --type mdbook --loc doc --dest book --branch 'main|ci/*'
volumes:
- name: docs
temp: { }
- /entrypoint.sh --type mdbook --loc doc --branch 'main|ci/*'

@ -11,7 +11,7 @@ Open pacKage Installer
======================
<div align="center">
<a href="https://codefirst.iut.uca.fr/documentation/oki/book/oki/">Documentation</a> -
<a href="https://codefirst.iut.uca.fr/documentation/oki/oki/book/">Documentation</a> -
<a href="https://codefirst.iut.uca.fr/swagger?url=/git/oki/oki/raw/branch/main/oki-api.yaml">Repository API</a> -
<a href="https://oki-pkg.dev">Staging instance</a>
</div>

@ -27,10 +27,19 @@ Create a user and a database on your PostgreSQL server.
```console
$ sudo -i -u postgres psql
postgres=# CREATE DATABASE oki;
postgres=# CREATE USER oki WITH ENCRYPTED 'password';
postgres=# CREATE USER oki WITH ENCRYPTED PASSWORD 'password';
postgres=# GRANT ALL PRIVILEGES ON DATABASE oki TO oki;
```
In PostgreSQL 15 onwards, users cannot create objects in the `public` schema by default.
Oki only needs to create tables using the `tables.sql` script. You can temporarily give this permission to the user with the following statement:
```console
=# \c oki
=# GRANT CREATE ON SCHEMA public TO oki;
=# -- REVOKE CREATE ON SCHEMA public FROM oki;
```
Clone the repository
```bash

Loading…
Cancel
Save