https://github.com/viniciusls/nodejs-db-migrations
NodeJS package to generate and run database migrations
https://github.com/viniciusls/nodejs-db-migrations
database db2 migrations mysql nodejs package
Last synced: about 2 months ago
JSON representation
NodeJS package to generate and run database migrations
- Host: GitHub
- URL: https://github.com/viniciusls/nodejs-db-migrations
- Owner: viniciusls
- License: isc
- Created: 2019-02-20T02:22:51.000Z (over 7 years ago)
- Default Branch: master
- Last Pushed: 2023-12-15T11:53:57.000Z (over 2 years ago)
- Last Synced: 2025-09-14T21:39:56.846Z (10 months ago)
- Topics: database, db2, migrations, mysql, nodejs, package
- Language: JavaScript
- Size: 47.9 KB
- Stars: 1
- Watchers: 1
- Forks: 0
- Open Issues: 1
-
Metadata Files:
- Readme: README.md
- License: LICENSE
Awesome Lists containing this project
README
# nodejs-db-migrations





NodeJS package to generate and run database migrations
## Summary
- [Getting started](https://github.com/viniciusls/nodejs-db-migrations#getting-started)
- [Supported databases](https://github.com/viniciusls/nodejs-db-migrations#supported-databases)
- [Available methods](https://github.com/viniciusls/nodejs-db-migrations#available-methods)
- [help](https://github.com/viniciusls/nodejs-db-migrations#help)
- [install](https://github.com/viniciusls/nodejs-db-migrations#install)
- [migrate](https://github.com/viniciusls/nodejs-db-migrations#migrate)
- [new](https://github.com/viniciusls/nodejs-db-migrations#new)
- [refresh](https://github.com/viniciusls/nodejs-db-migrations#refresh)
- [reset](https://github.com/viniciusls/nodejs-db-migrations#reset)
- [rollback](https://github.com/viniciusls/nodejs-db-migrations#rollback)
- [version](https://github.com/viniciusls/nodejs-db-migrations#version)
- [Contributing](https://github.com/viniciusls/nodejs-db-migrations#contributing)
- [Need help](https://github.com/viniciusls/nodejs-db-migrations#need-help)
## 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 `_.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](mailto:vinicius.ls@live.com).