docs(db): postgres is now supported in latest stable & some styling fixes
This commit is contained in:
@@ -5,10 +5,6 @@ sidebar_position: 2
|
|||||||
---
|
---
|
||||||
# Configuring the Database
|
# Configuring the Database
|
||||||
|
|
||||||
:::important
|
|
||||||
Postgres is not supported on **latest** yet. (It is currently only available in **develop**)
|
|
||||||
:::
|
|
||||||
|
|
||||||
Jellyseerr supports SQLite and PostgreSQL. The database connection can be configured using the following environment variables:
|
Jellyseerr supports SQLite and PostgreSQL. The database connection can be configured using the following environment variables:
|
||||||
|
|
||||||
## SQLite Options
|
## SQLite Options
|
||||||
@@ -51,9 +47,14 @@ DB_SSL_CERT_FILE= # (optional) Path to certificate chain in pem format for the p
|
|||||||
2. Run Jellyseerr to create the tables in the PostgreSQL database
|
2. Run Jellyseerr to create the tables in the PostgreSQL database
|
||||||
3. Stop Jellyseerr
|
3. Stop Jellyseerr
|
||||||
4. Run the following command to export the data from the SQLite database and import it into the PostgreSQL database:
|
4. Run the following command to export the data from the SQLite database and import it into the PostgreSQL database:
|
||||||
- Edit the postgres connection string to match your setup
|
:::info
|
||||||
- WARNING: The most recent release of pgloader has an issue quoting the table columns. Use the version in the docker container to avoid this issue.
|
Edit the postgres connection string to match your setup
|
||||||
- "I don't have or don't want to use docker" - You can build the working pgloader version [in this PR](https://github.com/dimitri/pgloader/pull/1531) from source and use the same options as below.
|
|
||||||
|
If you don't have or don't want to use docker, you can build the working pgloader version [in this PR](https://github.com/dimitri/pgloader/pull/1531) from source and use the same options as below.
|
||||||
|
:::
|
||||||
|
:::caution
|
||||||
|
The most recent release of pgloader has an issue quoting the table columns. Use the version in the docker container to avoid this issue.
|
||||||
|
:::
|
||||||
```bash
|
```bash
|
||||||
docker run --rm -v config/db.sqlite3:/db.sqlite3:ro -v pgloader/pgloader.load:/pgloader.load ghcr.io/ralgar/pgloader:pr-1531 pgloader --with "quote identifiers" --with "data only" /db.sqlite3 postgresql://{{DB_USER}}:{{DB_PASS}}@{{DB_HOST}}:{{DB_PORT}}/{{DB_NAME}}
|
docker run --rm -v config/db.sqlite3:/db.sqlite3:ro -v pgloader/pgloader.load:/pgloader.load ghcr.io/ralgar/pgloader:pr-1531 pgloader --with "quote identifiers" --with "data only" /db.sqlite3 postgresql://{{DB_USER}}:{{DB_PASS}}@{{DB_HOST}}:{{DB_PORT}}/{{DB_NAME}}
|
||||||
```
|
```
|
||||||
|
|||||||
Reference in New Issue
Block a user