Skip to content

A CLI to generate typeorm migrations from an existing mysql database

License

Notifications You must be signed in to change notification settings

salesplay/mytypeorm

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

6 Commits
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

mytypeorm

A CLI to generate typeorm migrations from an exist mysql database

Installation

git clone https://github.com/salesplay/mytypeorm.git
cd mytypeorm
yarn -D

Usage

To generate migrations of all tables.

yarn cli all --host 127.0.0.1 --port 3306 --username root --password \
my_password --output-directory ./migrations

To generate a migration of a specific table.

yarn cli child --host 127.0.0.1 --port 3306 --username root --password \
my_password --output-directory ./migrations --child-name "table_name"

Features

  • Unique Indexes
  • Primary Indexes
  • Enums

To Do

  • Foreign keys

Contributions

All PRs and issues are welcome.

Feature Requests

This tool is made for a specific use case. So this tool has limited features. Do not hesitate to open an issue if you want a new feature request. We will implement your feature ASAP.

About

A CLI to generate typeorm migrations from an existing mysql database

Topics

Resources

License

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published