Skip to content

viniciusls/nodejs-db-migrations

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

67 Commits
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

nodejs-db-migrations

GitHub npm node GitHub commit activity GitHub contributors

NodeJS package to generate and run database migrations

Summary

Getting started

Supported databases

Currently nodejs-db-migrations support the following databases:

  • MySQL;
  • DB2 (coming soon);

If you want to help us adding new databases support, you can start creating an adapter and a connector for that database inside ./lib/adapters and ./lib/connectors, respectively, with the name of the desired database and following the structure used in mysql.js adapter and connector, for example.

Available methods

help

Show all commands and options available and its descriptions.

install

Create the package needed migrations and execute then

migrate

Execute pending migration(s)

new(name : string [optional])

Create a new migration. If a name is specified the migrate will follow the convention <generated_id>_<name>.js

refresh

Rollback all the database and re-run all the migrations

reset

Rollback all migrations executed

rollback

Rollback the last migration executed

version

Show the current package version

Contributing

Need help?

If you need more help, feel free to open an issue here or send an email to vinicius.ls@live.com.

About

NodeJS package to generate and run database migrations

Topics

Resources

License

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published