{% extends "base.html" %} {% block title %}Database Configuration Wizard - DocuElevate{% endblock %} {% block head_extra %} {% endblock %} {% block content %}
{# ── Header ── #}

Database Configuration Wizard

Configure a new database connection or migrate your data to an external database.

{# ── Tab Navigation ── #}
{# ═══════════════════════════════════════════════════════════════════ #} {# TAB 1 — Configure #} {# ═══════════════════════════════════════════════════════════════════ #}
{# Step indicator #}

Step 1: Choose Database Type Step 2: Connection Details Step 3: Test & Apply

{# ── Step 1: Choose backend ── #}

Select the database engine you want to use.

{# ── Step 2: Connection details ── #}
{# SQLite path #} {# Host-based databases #} {# Live preview of the URL #}
{# ── Step 3: Test & Apply ── #}
{# Test button #}
{# Apply as DATABASE_URL #}

To use this database, set the DATABASE_URL environment variable (in your .env file or Docker Compose config) to the connection string above, then restart DocuElevate.

Copied!

{# ═══════════════════════════════════════════════════════════════════ #} {# TAB 2 — Migrate #} {# ═══════════════════════════════════════════════════════════════════ #}

Migrate Data Between Databases

Copy all your data from one database to another (e.g. SQLite → PostgreSQL).

{# Source URL #}

This is your current database. Pre-filled with the running configuration.

{# Target URL #}

The new database to copy data into. Must be empty (schema will be created automatically).

{# Actions #}
{# Connection test results #}
Source:
Target:
{# Preview table #}
Table Rows
Total
{# Migrate button #}

Warning: This will copy all data to the target database. The target must be empty. This operation cannot be undone.

{# Migration progress / result #}

Migration in progress — please do not close this page…

Migration Successful

Copied rows across tables.

Update your DATABASE_URL environment variable to the target URL and restart DocuElevate.

Migration Failed

{# ── Help text ── #}

See the Database Configuration Guide for more details.

{% endblock %}