knex-migrate icon indicating copy to clipboard operation
knex-migrate copied to clipboard

Typescript migration support

Open kurbar opened this issue 5 years ago • 1 comments

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

kurbar avatar Dec 20 '19 09:12 kurbar

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

rossPatton avatar Feb 10 '21 04:02 rossPatton