A flexible Postgres database migration tool that stores migration levels in the database itself, enabling safe concurrent migrations across multiple instances (e.g., development teams or production servers). Version 6.0.0 requires Node >=18. Uses the 'data-elevator' core for migration logic and 'pg' for Postgres connectivity. Unlike many migration libraries, it stores state in a user-defined table rather than a file, making it ideal for shared database environments.
npm install data-elevator-postgresNo compatibility data collected yet for this library.
Verified import paths — ran on the pinned version, not inferred.
Install, construct a new elevator, create a migration, edit the SQL, then run migrations up/down/to a specific level.
Switch your project to ESM (type: module in package.json) and use import syntax.
Upgrade Node.js to version 18 or later.
Replace 'construct' with 'init' in your workflow.
Ensure DATABASE_URL is exported before running any command.
Set a custom table name in config.levelControllerConfig.tableName to avoid conflicts.
Change to import syntax or enable ESM in your project.
Start PostgreSQL service and verify DATABASE_URL is correctly set.
Run 'npx data-elevator-postgres init' to create the table.