Registry / devops / typeorm_migration_generator_2

typeorm_migration_generator_2

JSON →
library1.0.8jsnpmunverified

A CLI tool to generate TypeORM migration files with default values for multiple databases (MySQL, PostgreSQL, Oracle, MariaDB, MSSQL). Current version 1.0.8, maintained on GitHub. Supports custom table names, starter code toggling, and generating DynamicColumns variable files. Alternative to typeorm migration:create with added defaults and database dialect selection.

npm install typeorm_migration_generator_2
INSTALL
IMPORT
SIG · TYPEORM_MIGRATION_
T
typeorm_migration_generator_2
devopsjavascriptv1.0.8
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.

CLI usage
typeorm_migration_generator src/migrations/UsersMigration -db pg
require('typeorm_migration_generator_2')
This is a CLI tool, not a library. Install globally and run via terminal.

Installs globally and generates a migration for MySQL with starter code on and custom table name 'users'.

yarn global add typeorm_migration_generator_2 typeorm_migration_generator src/migrations/UsersMigration -db mysql -st 1 -table users
Debug
Known issues
gotchaPackage name is 'typeorm_migration_generator_2' but command is 'typeorm_migration_generator' (no '_2' suffix).
fix
Use 'typeorm_migration_generator' command, not the package name.
affects: >=1.0.0
gotchaRequires global installation; local install will not expose CLI.
fix
Use 'yarn global add' or 'npm install -g'.
affects: >=1.0.0
gotchaMigration path must be relative; absolute paths may fail.
fix
Use relative paths like 'src/migrations/MyMigration'.
affects: >=1.0.0
Errors
Common errors & fixes
Command not found: typeorm_migration_generator
Package not installed globally.
fix
Run 'yarn global add typeorm_migration_generator_2' or 'npm install -g typeorm_migration_generator_2'.
ENOENT: no such file or directory
Invalid or absolute migration path.
fix
Provide a relative path like 'src/migrations/MyMigration'.
Upgrade
Version history
1.0.8latest on npm
Audit
Dependencies
commanderrequiredCLI argument parsing
Agent activity
8 hits · last 30 days
node
8
Resources
typeorm_migration_generator_2 — npm install typeorm_migration_generator_2 · libregistry