Migrations and DB
Openlane uses schema-driven development backed by PostgreSQL.
Stack
entfor schema modelingatlasfor schema diffing and migration generationgoosefor migration execution support
Supported Drivers
pgxpostgres(lib/pq)
Local Configuration Example
db:
debug: true
driver_name: pgx
primary_db_source: "postgres://postgres:password@postgres:5432?sslmode=disable"
run_migrations: true
Migration Workflow
Generate migrations after schema changes:
task atlas:create
Typical output updates:
db/migrationsdb/migrations-goose-postgres
For new schemas, follow the codegen flow first, then generate migrations.