Automatic migrationbs
Heyo,
I am currently thinking about using SvelteKit with drizzle for a new project. Currently I use NestJs +TypeOrm, and one thing I like is that my migrations get automatically applied whenever I push an update into production.
(Work locally, change database entities (e.g. add a column, create a new seed query), and I don't have to worry about manually starting any migrations on the client's server).
Is the same possible in drizzle?
1 Reply
I've figured out that I can just do all the db setup in src/hooks.server.ts
I use it to setup, migrate & seed the database on start-up, seems to work really well and explicit.