database-migrations
TypeScript icon, indicating that this package has built-in type declarations

1.1.0 • Public • Published

Database migrations based on knex.js

  • can use .sql files for migrations
  • generate .sql files with tool
  • can use repeatable scripts for database updates

Install

npm install database-migrations

Usage

Run migrations

  - node -r ts-node/register ./node_modules/.bin/migration:run knexfile.ts
  - migration:run knexfile.js

Generate migrations

  - migration:generate <folder> <migration-name>
  - migration:generate migrations/migrations/v0.2.0

Readme

Keywords

none

Package Sidebar

Install

npm i database-migrations

Weekly Downloads

9

Version

1.1.0

License

MIT

Unpacked Size

22.8 kB

Total Files

24

Last publish

Collaborators

  • matus.kislan