0.1.4 • Published 3 years ago

tiny-migration v0.1.4

Weekly downloads
12
License
MIT
Repository
github
Last release
3 years ago

Simple Migration

A very tiny and simple migration manager for node and mysql

This library uses mysql2

It search .sql files in /migrations folder

Each .sql file has to be named n-<migration-name>

CLI

You can call using mig, the argument is the migration folder

CLI Notes:

It uses dotenv to config the env variables using that variables

  • DB_HOST
  • DB_USER
  • DB_PASSWORD
  • DB_NAME

Examples

  • 001-create_user
  • 02-custumers_table
  • 1002-remove_column_x

Obs

The initial numbers will be sorted

0.1.2

3 years ago

0.1.4

3 years ago

0.1.1

3 years ago

0.1.0

3 years ago