A database migration tool for PostgreSQL, version 0.2.3. It manages database schema and content changes by running migration scripts in order, tracking the current version in a `db_versions` table. Migrations can be written as JavaScript (async functions) or SQL files. It integrates with the `larvitdb-pg` library and supports custom table names and script paths. Release cadence is low; updates focus on dependency fixes.
npm install larvitdbmigration-pgNo compatibility data collected yet for this library.
Verified import paths — ran on the pinned version, not inferred.
Demonstrates how to initialize and run a migration using larvitdbmigration-pg with larvitdb-pg.
Ensure only one instance runs migrations at a time (e.g., use a distributed lock or run during deployment).
Use only one type per version number (either .js or .sql, not both).
Check larvitdb-pg changelog and test after upgrades.
Install larvitdb-pg: npm install larvitdb-pg
Use CommonJS require: const DbMigration = require('larvitdbmigration-pg');Check database host/port credentials and ensure PostgreSQL is running.
Ensure migration script path is correct and run migration. The table will be auto-created.