Registry / database / migrt
library6.0.4jsnpmunverified

A deprecated database migration tool for PostgreSQL, MySQL, and other SQL databases. Version 6.0.4 was the last release. It has been replaced by migurt. Users should migrate to migurt for continued support and updates, as migrt is no longer maintained and may have security vulnerabilities.

npm install migrt
INSTALL
IMPORT
SIG · MIGRT
M
migrt
databasejavascriptv6.0.4
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.

default
import migrt from 'migrt';
const migrt = require('migrt');
ESM only; CommonJS require is not supported.
runMigrations
import { runMigrations } from 'migrt';
const runMigrations = require('migrt').runMigrations;
Named export available in ESM only.
Migrator
import { Migrator } from 'migrt';
import Migrator from 'migrt';
Not a default export.

Initialize and run migrations against a PostgreSQL database using default settings.

import migrt from 'migrt'; const config = { database: process.env.DB_URL ?? 'postgres://localhost/mydb', migrationsDir: './migrations' }; migrt.run(config) .then(() => console.log('Migrations applied successfully')) .catch(err => console.error('Migration failed', err));
Debug
Known issues
deprecatedPackage is deprecated. Use migurt instead.
fix
Replace migrt with migurt in package.json and update imports accordingly.
affects: >=0.0.0
Errors
Common errors & fixes
Error: Cannot find module 'migrt'
Package not installed or not in node_modules.
fix
Run npm install migrt to install the package.
Upgrade
Version history
6.0.4latest on npm
Audit
Dependencies

No dependency data recorded yet.

Agent activity
7 hits · last 30 days
node
6
Resources
packagemigrt
migrt — npm install migrt · libregistry