Skip to content

Typescript migration support#47

Open
kurbar wants to merge 3 commits intosheerun:masterfrom
kurbar:typescript-migration-support
Open

Typescript migration support#47
kurbar wants to merge 3 commits intosheerun:masterfrom
kurbar:typescript-migration-support

Conversation

@kurbar
Copy link

@kurbar kurbar commented Dec 20, 2019

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

@rossPatton
Copy link

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

@corysimmons corysimmons mentioned this pull request May 16, 2021
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

Support for TypeScript supporting version of knex migrate command

2 participants