JustFlows

Наразі документація лише англійською мовою. Решта сайту відповідає вашій мові.

Databases

PostgreSQL, MySQL 8+, and MariaDB 10.6+ — how to choose, connect, and migrate.

5 хв читання

You do not need to know SQL to run Justflows. Pick the database your host already offers, or use Postgres in Docker.

DatabaseWhen to use itURL scheme
PostgreSQL (default)New installs. Bundled in the default Compose file.postgres://…
MySQL 8+The host already provides MySQL.mysql://…
MariaDB 10.6+The host already provides MariaDB.mariadb://…

Docker variants

bash
# MySQL
docker compose -f docker/docker-compose.mysql.yml --env-file .env up

# MariaDB
docker compose -f docker/docker-compose.mariadb.yml --env-file .env up

Connection settings

The wizard writes DB_DRIVER, DB_HOST, DB_PORT, DB_NAME, DB_USER, DB_PASSWORD, and the matching DATABASE_URL. The server routes use the discrete values; core-backed subsystems also require DATABASE_URL. TLS is controlled by DB_SSL and DB_SSL_REJECT_UNAUTHORIZED.

Migrations

SQL lives in migrations/, with matching PostgreSQL and MySQL files (MariaDB uses the MySQL file). Migrations 0001 through 0036 are consolidated into a single 0036_baseline file per dialect. Fresh installs run the full baseline. Existing sites run only the parts they have not recorded yet, so a site on any earlier migration never replays steps it already applied. The baseline is then recorded once in _migrations, and later schema changes continue from 0037_tenancy, which adds multisite workspaces. Run them from the wizard, from Admin → Health, via POST /api/db/migrate (administrator), or justflows db migrate.

Migrations after the baseline. Each ships a PostgreSQL and a MySQL file; MariaDB uses the MySQL one.
MigrationAdds
0037_tenancyMultisite workspaces
0038_quota_limitsWorkspace and website limits
0039_custom_domains · 0040_security_hardening · 0041_domain_provider_attachmentCustom domains and their verification
0042_private_filesPrivate file storage for plugins
0043_storage_quota_locksThe total storage cap
0044_workspace_ownerThe owner of each workspace
0045_account_pagesThe default account page
0046_content_type_cache_controlCache-Control per content type
0047_taxonomy_content_typesWhich content types use each taxonomy
0048_job_queueThe durable plugin job queue
0049_workspace_deletionThe retention clock for suspended and deleted workspaces
0050_content_type_settingsPer-type content settings
0051_auth_claimsTwo-factor sign-in steps that cannot be replayed (security)
0052_translation_group_datesShared creation and publish dates for a translation group
0053_backup_schedulesScheduled backups
0054_content_visibilityWho can see each entry (content visibility)
0055_mcp_hub_sitesWebsites reached through the AI agents connection hub
0056_webauthnPasskeys
0057_document_revisions · 0058_document_historyEdit conflicts and version history for headers, footers, widget areas, and templates
0059_data_requestsMembers' own requests to erase their data (users and roles)
0060_user_birth_dateAn optional date of birth on accounts
0061_backup_jobsBackup and restore jobs shared by every process
0062_user_identitiesSign-in through an external identity provider (users and roles)

Note

The database client lives in apps/server/src/lib/database: one client for PostgreSQL and MySQL/MariaDB (mysql2) that the server, its SQL routes, and the migrations all use.

A workspace on a separate database uses the same driver as the installation. The installation database is migrated on boot; each separate database is migrated from Admin → Platform.