How to run migration script?
I am looking into this doc (https://orm.drizzle.team/kit-docs/overview#running-migrations) regarding running migrations and you provide a script that we can call. My question is how can we call this script outside our app. Maybe through the bash/terminal?
Drizzle Kit - DrizzleORM
Drizzle ORM | %s
3 Replies
node my-migration-script.js? tsx my-migration-script.ts Whatever you'd like to use to run your script. Even bun
yeah... such a n00b guy.. sorry I came from C#, all new here 😅
Thanks, working like a charm 🙏
This can be really annoying with ESM modules though. Really which there was a CLI command to run them