SERVER / DATABASE / MIGRATIONS

Migrations

Dowe derives maintained migration history from entities. PostgreSQL and D1 receive immutable SQL nodes; Dowe Database records the same schema head without SQL.

1 / GENERATE

Run one command after entity changes

Run the command from the project root. It compiles entities without connecting to a provider, verifies every historical fingerprint, and appends only the new head. An unchanged schema causes no file writes.

dowe
dowe database migrate
Artifact
Responsibility

No data

There are no records to display

2 / CHANGE POLICY

Append safe changes, reject destructive guesses

The graph never infers a rename or rewrites history. Existing SQL is content-addressed and must remain unchanged.

Entity change
Generator result

No data

There are no records to display

3 / DEPLOYMENT

Apply pending nodes before seeders

Deployment blocks when a PostgreSQL or D1 graph is missing, stale, reordered, or modified. Production applies each pending SQL node and its ledger fingerprint atomically, applies pending seeders next, and opens the listener only after both phases succeed.