How to migrate changes to a table

I'm trying to read up on drizzle and the first question that come to mind was how does migration works with database changes? The docs, https://orm.drizzle.team/docs/migrations, only shows the initial first migration. How are changes treated and what are the recommended way of doing them? Do I just update the schema.ts file and drizzle figure out what migration I need to run?
1 Reply
Dan
Dan2y ago
Do I just update the schema.ts file and drizzle figure out what migration I need to run?
yes, pretty much - it generates a schema diff compared to the last migration and creates a new migration accordingly.
Want results from more Discord servers?
Add your server