Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Typescript migration support #47

Open
wants to merge 3 commits into
base: master
Choose a base branch
from

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