Registry / database / migration-management

migration-management

JSON →
library1.0.82jsnpmunverified

A specialized migration management tool for Naawan CMS. Version 1.0.82 provides schema migration and data seeding capabilities tailored for the Naawan content management system. Release cadence is irregular with frequent patches. Key differentiator is its integration with Naawan CMS's specific database structure, limiting broader utility. No documented alternatives or breaking changes. Primarily used with Node.js.

npm install migration-management
INSTALL
IMPORT
SIG · MIGRATION-MANAGEME
M
migration-management
databasejavascriptv1.0.82
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.

MigrationManager
import { MigrationManager } from 'migration-management'
const MigrationManager = require('migration-management').MigrationManager
ESM-only; no CommonJS support.
runMigrations
import { runMigrations } from 'migration-management'
import runMigrations from 'migration-management'
Named export, not default.
MigrationConfig
import type { MigrationConfig } from 'migration-management'
import { MigrationConfig } from 'migration-management'
TypeScript users should import as type to avoid runtime overhead.

Initialize MigrationManager with database URL and migrations directory, then run all pending migrations asynchronously.

import { MigrationManager, runMigrations } from 'migration-management'; const config = { dbUrl: process.env.DB_URL ?? 'postgres://localhost:5432/naawan', migrationsDir: './migrations' }; const manager = new MigrationManager(config); async function main() { await runMigrations(manager); console.log('Migrations complete'); } main().catch(console.error);
Debug
Known issues
gotchaPackage has no README or documentation; API may change without notice.
fix
Check the source code or contact the maintainer for usage details.
affects: *
gotchaNo CommonJS support; require() will fail. Use ESM import.
fix
Use import statements instead of require.
affects: >=1.0
deprecatedThe 'runMigrations' function may be deprecated in future versions.
fix
Prefer using MigrationManager.run() directly if available.
affects: 1.0.82
Errors
Common errors & fixes
Error: Cannot find module 'migration-management'
Package not installed or not in node_modules.
fix
Run 'npm install migration-management' (version 1.0.82) and ensure it's in your dependencies.
TypeError: MigrationManager is not a constructor
Incorrect import; using default import instead of named import.
fix
Use 'import { MigrationManager } from 'migration-management'' as a named import.
Upgrade
Version history
1.0.82latest on npm
Audit
Dependencies

No dependency data recorded yet.

Agent activity
8 hits · last 30 days
node
8
Resources
migration-management — npm install migration-management · libregistry