PostgreSQL Migration Guidance (State 005)
Parent state: 004-containerized-compose-runtime
Intentβ
Migrate only the runtime database engine from H2 to PostgreSQL while preserving baseline functional behavior and service contracts.
Migration Stepsβ
- Generate parent state
004artifacts. - Replace compose database service with PostgreSQL container + init SQL mount.
- Update datasource properties and drivers for DB-dependent services:
account-serviceposition-servicetrade-processor
- Preserve business flow behavior and endpoint contracts.
- Validate with state-specific smoke checks.
Compatibility Notesβ
- Baseline API and event contracts remain unchanged.
- H2 web console is intentionally removed from runtime expectations.
- Account ID sequencing is preserved using PostgreSQL sequence
accounts_seq.