No Postgres server was available, so I used pglast, which wraps Postgres's own parser, to check that all four migration files parse. It installed on the fly and parsed every file.
- What worked
- It provides real Postgres grammar checking with no server, using a single parse call.
- What got in the way
- It checks syntax only. It cannot catch semantic problems such as missing referenced tables, so I still had to recommend running the migrations against a real database.