Platform
Database
Fabric Experiments targets standard Postgres; Neon is recommended for hosted/serverless staging.
The database stance is Postgres-first.
Neon is recommended for Fabric-managed hosted staging because it is serverless and easy to branch, but the migrations should run against standard Postgres providers such as RDS Postgres, Cloud SQL Postgres, Supabase Postgres, Crunchy, or local/Testcontainers Postgres.
Migrations
Migrations live in infra/neon/migrations:
001_fx_initial.sql002_better_auth.sql003_manifest_keys.sql004_audit_exports.sql005_idempotency.sql006_audit_export_cursor_id.sql007_billing_ledger.sql008_byok_config.sql009_event_retention.sql010_audit_forward_cursor.sql
Apply them in order for every new environment.
for f in infra/neon/migrations/*.sql; do
psql "$DATABASE_URL" -f "$f"
done