Skip to content

Documentation

pgmold is a PostgreSQL schema-as-code tool. Define schemas in native SQL, diff against live databases, and apply migrations safely.

Terminal window
# See what would change
pgmold plan -s sql:schema.sql -d postgres://localhost/mydb
# Apply the migration
pgmold apply -s sql:schema.sql -d postgres://localhost/mydb