This package is for generating typeorm migration according to provided path.
# Install package
$ yarn global add typeorm_migration_generator_2
# Generate migration with a DynamicColumns variable in a separate file
# to use it everywhere in your migrations.
# Default database is mysql.
$ typeorm_migration_generator src/migrations/UsersMigration -db pg
The above commands will install the package globally at your PC and generate your needed migration according to the specified location given
Added more support for databases (mysql, postgres, oracle, mariadb, mssql)
# database names: mysql, pg, oracle, mariadb, mssql
$ typeorm_migration_generator src/migrations/UsersMigration -db [mysql(Default), pg, oracle, mariadb, mssql]
# database names: mysql, pg, oracle, mariadb, mssql
$ typeorm_migration_generator src/migrations/UsersMigration -st [0,1](off, on)
$ typeorm_migration_generator src/migrations/UsersMigration -starter [0,1(Default)](off, on)
# database names: mysql, pg, oracle, mariadb, mssql
$ typeorm_migration_generator src/migrations/UsersMigration -t [table-name]
$ typeorm_migration_generator src/migrations/UsersMigration -table [table-name]
The name specified in the above commands will be used exactly as table name.