How to run TypeOrm migrations #77
-
Thanks for the project and the setup with TypeOrm. How can i run TypeOrm migrations(https://orkhan.gitbook.io/typeorm/docs/migrations)? |
Beta Was this translation helpful? Give feedback.
Replies: 3 comments 10 replies
-
@BracketJohn Do you know this? |
Beta Was this translation helpful? Give feedback.
-
Here is what fails: This is what my file in
If i run
I also tried I also looked at this thread but it did not help me: typeorm/typeorm#8810 |
Beta Was this translation helpful? Give feedback.
-
For documentation purposes I’ll link the answer I wrote to your issue on typeorm’s repo you created while I researched that for an intern project 🙂 typeorm/typeorm#9645 (comment) This is only a workaround but the gist is:
You can prefix every cli command with that and then use the CLI as used. Has this resolved your issue? if so: please mark this as the resolution :) |
Beta Was this translation helpful? Give feedback.
For documentation purposes I’ll link the answer I wrote to your issue on typeorm’s repo you created while I researched that for an intern project 🙂 typeorm/typeorm#9645 (comment)
This is only a workaround but the gist is:
esbuild
to compile the file that exportsDataSource
-d
flagYou can prefix every cli command with that and then use the CLI as used.
Has this resolved your issue? if so: please mark this as the resolution :)