DT
Drizzle Team•5mo ago
Xazu

Default Rows

Hi! Is there any way to set some default rows in the table by drizzle?
5 Replies
Ethan
Ethan•2mo ago
I am also looking for ways to do this. any one knows how to add dafalut rows in Migrations🤔
Mario564
Mario564•2mo ago
Hi there. You'll have to write insert statements in a migration file to do that. There are plans to improve DX on this regard but for now this is the only way
Ethan
Ethan•2mo ago
OK, i got it,thank you
Mario564
Mario564•2mo ago
I recommend participating in an ongoing conversation about adding TS migrations (and other migration improvements) https://github.com/drizzle-team/drizzle-orm/discussions/2832
GitHub
Migrations folder structure v3 · drizzle-team drizzle-orm · Discuss...
Based on production feedback our migrations folder structure completely unusable due to git incompatibility Current migrations folder structure looks like below 📦 <project root> └ 📂 drizzle ├...
Ethan
Ethan•2mo ago
👌
Want results from more Discord servers?
Add your server