Skip to content
PtahPtah
Ptah logo

Ptah

Plan, verify, and apply database schema changes or persistent inference-state migrations.

Ptah compares the state you want with the state a database has, then produces a change you can inspect before it runs. Schema work can land as versioned SQL files or as a direct apply. Persistent model output uses a separate candidate, verification, cutover, and rollback lifecycle.

The default quick start creates and verifies a SQLite database in about five minutes. It needs no database server, Docker, or Go toolchain.

Schema sources and a live database produce a reviewable plan that either becomes versioned migration files or is applied directly. Inference specifications and source rows produce a candidate generation that is verified before cutover while the active generation remains available for rollback.

Schema changes and persistent inference state use separate review and cutover paths.

What to notice: Schema changes converge a desired schema and a database through versioned files or direct apply. Inference changes keep the active generation available until a candidate passes verification and cutover.

These are generated from committed fixtures by the same commands the linked pages document—not mockups or conceptual diagrams.

Keep ordered SQL files in your repository when a change must be reviewed, replayed across environments, and represented in deployment history.

Start with a versioned migration or open the versioned workflow overview.

Keep a desired schema and let Ptah plan the SQL that makes a target database match it. This path suits a database with one clear owner and changes that do not need a committed migration file.

Run the default quick start or open the direct workflow overview.

Keep the active generation available while Ptah builds, catches up, and verifies a candidate generation. Cutover changes the active pointer only after the candidate passes the required checks.

Check whether inference migrations apply.

Support levels describe what this repository exercises, not what a server is allowed to do. The database support matrix is generated from the same release-line declaration used by CI.

Atlas compatibility is a separate journey through the ptah-compat binary. The Atlas overview distinguishes default compatibility, strict Community Edition mode, native Ptah, measured parity, and retained divergences. The native ptah binary does not register Atlas command paths.

Ptah is an independent MIT-licensed implementation. The license boundary records the provenance policy.