Engine
ForgeSchema uses one canonical representation for desired YAML, inspected catalogs, migration plans and independent verification. Supported structural changes can be reviewed as explicit operations before they are executed.
Apply validates the saved artifact, locks only the tables the plan changes, checks the live source, executes supported operations, verifies the target and commits history atomically. When a step fails on real data, such as a NULL in a column becoming required or a duplicate under a new unique constraint, everything rolls back and the error carries PostgreSQL’s own message and code. An online plan builds new indexes with CREATE INDEX CONCURRENTLY outside the main transaction, so reads and writes keep going, and a rerun of the same plan finishes the job after a failed build. Nothing is dropped or converted unless a change file lists it, and drops say plainly that the data goes. The standalone verify command checks a schema file or a saved ready plan’s target in a separate read-only snapshot.
Views are dropped before the changes they depend on and created again after them, in dependency order, in the same transaction. Verification reports deterministic differences for missing or unexpected objects, types, nullability, defaults, identity settings, unique constraints, check constraints, indexes, foreign keys, enum values and view queries. It does not infer renames, generate repairs or read application rows. The current version, 0.4.0, supports PostgreSQL 16, 17 and 18, with deliberately limited schema support.
See the reproducible walkthrough and capability matrix for demonstrated behavior and limits.