Sign inSign up

getreadystack/pg-migration-lock-lint

By getreadystack

•Updated 26 days ago

Not affiliated with ReadyStack (readystack.dev). No new versions are published here.

Image
0

319

getreadystack/pg-migration-lock-lint repository overview

Not affiliated with ReadyStack (readystack.dev). No new versions are published here.

⁠Postgres Migration Lock Lint

Postgres Migration Lint - locks and downtime (ALTER TABLE, CREATE INDEX) — finds the line

Names every statement in a Rails, Django or raw SQL migration that takes a table-blocking Postgres lock, and prints the non-blocking rewrite. 36 rules, PostgreSQL 12-17.

⁠Run

docker run --rm -v "$PWD":/work getreadystack/pg-migration-lock-lint /work/file

The same 36 rules as the VS Code extension, in a container. Mount a folder on /work.

⁠Free

  • Check the migration file you have open against all 36 rules and get the lock mode, the failure and the safe rewrite for every statement.
  • --rules lists every rule

⁠With a licence ($29 once)

  • Check every migration in the workspace in one pass, export the review as Markdown or JSON for the change ticket, and fail CI on an exit code.
docker run --rm -e READYSTACK_LICENSE=<key> -v "$PWD":/work getreadystack/pg-migration-lock-lint --dir /work --ci

Independent Postgres consultancies bill migration and lock review at $150/hour and up; this is one review, priced once.

⁠Use from an AI agent (MCP)

Claude Code · Cursor · Windsurf · any MCP client - add to your MCP config:

{ "mcpServers": { "pg-migration-lock-lint": { "command": "npx", "args": ["-y", "@readystack/pg-migration-lock-lint", "--mcp"] } } }

Tools: check_text and check_file (free) · check_dir (licence). The agent gets every finding with the line number.

⁠Use in CI

- name: Postgres Migration Lock Lint
  run: npx -y @readystack/pg-migration-lock-lint --dir . --ci

(container: docker run --rm -v "$PWD:/work" getreadystack/pg-migration-lock-lint --dir /work --ci)

The folder sweep, reports and CI mode need one licence — one payment, no subscription. Set READYSTACK_LICENSE=<key> or run --license <key> once.

Get a licence⁠

Tag summary

Content type

Image

Digest

sha256:ea0e90651…

Size

46.1 MB

Last updated

26 days ago

docker pull getreadystack/pg-migration-lock-lint