knex-migrate
knex-migrate copied to clipboard
Typescript migration support
Adds support for creating Typescript migrations. Fixes #43
Changes add a --typescript
flag:
- knex-migrate will look for a
knexfile.ts
file. Can still be overwritten with the--knefile
flag - knex-migrate will use the new
ts.stub
to generate a migration file. Can still be overwritten with the--stub
flag
Would love for this, or something like it to get merged! Being able to run a set amount of migrations would be very useful for bootstrapping a DB, but I use typescript. Currently I chain a bunch of plain knex commands together, which is clearly not ideal