Repository navigation
v0.11.4
Patch release over v0.11.3. PostgreSQL desired schemas can keep their ordered SQL files and GRANT lists when generating migrations with Ptah Compat.
Read an ordered SQL schema
An atlas.hcl SQL src list can declare a table in one file and add its foreign keys or other ALTER statements in a later file. Ptah reads these sources as one ordered SQL document, preserving each source's variable scope.
Preserve PostgreSQL privileges and identity columns
PostgreSQL GRANT statements can name several objects and grantees:
GRANT SELECT ON users, tenants TO app_reader, app_operator;
GRANT UPDATE (name) ON users, tenants TO app_operator;Ptah keeps every object-role pair, including column privileges, routine signatures, and WITH GRANT OPTION. Both the native CLI and Ptah Compat use the shared SQL reader.
The reader also preserves the implicit NOT NULL constraint on PostgreSQL identity columns. A declaration such as BIGINT GENERATED BY DEFAULT AS IDENTITY no longer produces an incorrect DROP NOT NULL migration.
These fixes were verified against sophium/erun's unchanged 80-file desired schema and 39 original migrations. The baseline produces no changes. A generated test migration includes its trigger, RLS policies, and grants without manual additions (#3991).
Container license
The published images include the original MIT license at /usr/share/licenses/ptah/LICENSE. Downstream images can copy that file alongside the Ptah binaries.
Dependency update
The OTLP protobuf dependency updates to v1.11.1 (#3989).
Upgrade
Install v0.11.4 through the installation guide, or use ghcr.io/stokaro/ptah:0.11.4 / stokaro/ptah:0.11.4. Both images include ptah, ptah-compat, and ptah-ls.