defnotwig/pg-safe-migrate
Run pg-safe-migrate commands in your CI pipeline — safety-first PostgreSQL migrations
View on GitHubTrust Signals
- Scorecard Score
- not yet scored
- Maintenance Recency
- Stale
- License
- None
Inputs
| name | description | required | default |
|---|---|---|---|
| command | Command to run: check, up, down, status, lint, doctor | yes | check |
| database_url | PostgreSQL connection string | yes | — |
| dir | Path to migrations directory | no | ./migrations |
| schema | Database schema for history table | no | public |
| table | History table name | no | _pg_safe_migrate |
| transaction | Transaction policy: auto | always | never | no | auto |
| allow_unsafe | Comma-separated list of safety rules to allow (e.g., PGSM001,PGSM007) | no | "" |
| version | Version of pg-safe-migrate to install | no | latest |
| node_version | Node.js version to use (only applicable if setup-node is needed) | no | 20 |
Outputs
| name | description |
|---|---|
| result | Exit code from pg-safe-migrate |
| stdout | Standard output from pg-safe-migrate |