Define custom migration SQL for drizzle

Is it possible to create custom Drizzle migration commands or SQL statements for unimplemented functions, like custom domains? We want to fully rely on Drizzle for DB schema migrations but need support for functions not yet implemented. What’s the recommended approach to safely include custom statements in the migration process?
2 Replies
Mario564
Mario5643w ago
You can run drizzle-kit generate --custom to generate a blank migration file where you can attach your custom logic in. Make sure to test that it works locally before applying the migration to prod
mike
mike3w ago
Wow, that's amazing, thanks for the hint. 👍
Want results from more Discord servers?
Add your server