@forhot2000/ts-migrate
v1.0.3
Published
## installation
Downloads
7
Maintainers
Readme
ts-migrate
installation
npm install @forhot2000/ts-migrate
configuration
provide enviromnent variables in .env
file, like:
MYSQL_HOST=localhost
MYSQL_USER=user
MYSQL_PWD=password
MYSQL_DB=database
usage
generate new migration file
npx ts-migrate generate <table> <name>
migrate all migrations to database
npx ts-migrate migrate
undo last one migration
npx ts-migrate undo
undo all migrations
npx ts-migrate undo-all