Registry / devops / postgrator-new

postgrator-new

JSON →
library0.1.64jsnpmunverified

A simple migration filename generator for postgrator that creates paired 'do' and 'undo' SQL migration files. Current version 0.1.64. It works by prompting the user for a migration purpose and then generating appropriately named files conforming to postgrator's naming convention. This tool reduces manual filename creation errors and ensures consistent naming for forward and rollback migrations. Release cadence is irregular; actively maintained.

npm install postgrator-new
INSTALL
IMPORT
SIG · POSTGRATOR-NEW
P
postgrator-new
devopsjavascriptv0.1.64
harness data pending
Install & Compatibility
Where this runs

No compatibility data collected yet for this library.

Code
Verified usage

Verified import paths — ran on the pinned version, not inferred.

postgrator-new
npx postgrator-new
npm install -g postgrator-new && postgrator-new
CLI tool; run via npx or global install.
default
No import; use CLI directly.
import postgratorNew from 'postgrator-new'
Package is not a library; no programmatic API.

Shows how to run the CLI tool to generate migration files interactively.

# Run migration file generator npx postgrator-new # Then enter migration description when prompted
Debug
Known issues
gotchaThe tool generates files but does not run migrations; you still need postgrator to apply them.
fix
Use postgrator-new to create files, then postgrator to run them.
affects: all
Upgrade
Version history
0.1.64latest on npm
Audit
Dependencies
inquirerrequiredInteractive prompts for migration purpose
Agent activity
6 hits · last 30 days
node
6
Resources
postgrator-new — npm install postgrator-new · libregistry