vaultwarden/migrations/dsql
Chase Douglas 01da554d7d db: add Aurora DSQL backend
Aurora DSQL speaks a PostgreSQL-compatible wire protocol, but it uses IAM
authentication and has DDL limits that differ from normal PostgreSQL.
Serverless deployments need to select it with a dsql:// DATABASE_URL while
the Diesel layer keeps using the PostgreSQL backend.

Add a dsql feature, classify dsql:// URLs as PostgreSQL, and convert them
to libpq URLs with cached IAM auth tokens. Route DSQL databases through a
dedicated migration set instead of the normal PostgreSQL migrations.

Keep the deployed DSQL migration versions and add DSQL migrations for
upstream schema changes needed by this rebase. Split newer DSQL migrations
into single-DDL, transactionless steps so they can run on Aurora DSQL.
2026-05-05 15:49:04 -07:00
..
2024-12-30-100000_create_tables db: add Aurora DSQL backend 2026-05-05 15:49:04 -07:00
2025-01-09-172300_add_manage db: add Aurora DSQL backend 2026-05-05 15:49:04 -07:00
2025-08-20-120000_add_users_organizations_invited_by_email db: add Aurora DSQL backend 2026-05-05 15:49:04 -07:00
2025-08-20-120100_add_sso_users db: add Aurora DSQL backend 2026-05-05 15:49:04 -07:00
2025-08-20-120200_add_sso_auth db: add Aurora DSQL backend 2026-05-05 15:49:04 -07:00
2026-03-09-005927_add_archives db: add Aurora DSQL backend 2026-05-05 15:49:04 -07:00
2026-04-25-120000_sso_auth_binding db: add Aurora DSQL backend 2026-05-05 15:49:04 -07:00