From c98becf93608236cdbd2365363385276ac7f90f7 Mon Sep 17 00:00:00 2001 From: fallenbagel <98979876+Fallenbagel@users.noreply.github.com> Date: Mon, 30 Dec 2024 10:21:27 +0800 Subject: [PATCH] docs(db): postgres is now supported in latest stable & some styling fixes --- docs/extending-jellyseerr/database-config.mdx | 15 ++++++++------- 1 file changed, 8 insertions(+), 7 deletions(-) diff --git a/docs/extending-jellyseerr/database-config.mdx b/docs/extending-jellyseerr/database-config.mdx index f7ad3165..297831b6 100644 --- a/docs/extending-jellyseerr/database-config.mdx +++ b/docs/extending-jellyseerr/database-config.mdx @@ -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 @@ -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}} ```