Skip to content

Commit

Permalink
docs(db): postgres is now supported in latest stable & some styling f…
Browse files Browse the repository at this point in the history
…ixes
  • Loading branch information
fallenbagel committed Dec 30, 2024
1 parent 9739e18 commit c98becf
Showing 1 changed file with 8 additions and 7 deletions.
15 changes: 8 additions & 7 deletions docs/extending-jellyseerr/database-config.mdx
Original file line number Diff line number Diff line change
Expand Up @@ -5,10 +5,6 @@ sidebar_position: 2
---
# 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:

## SQLite Options
Expand Down Expand Up @@ -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
3. Stop Jellyseerr
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
- 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.
- "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.
:::info
Edit the postgres connection string to match your setup

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
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}}
```
Expand Down

0 comments on commit c98becf

Please sign in to comment.