Can I create a default row when `drizzle-kit push`

I have a config table and I want to have some default data when push to db. Can drizzle-kit create it automatically for me? Maybe like database seeding?
2 Replies
rphlmr ⚡
rphlmr ⚡16mo ago
It is planned but as for now you have to do your own seeding script. you can look at https://discord.com/channels/1043890932593987624/1141321911155036232/1141364577829912586 (tsx is a package to install as dev dependencies, it replace ts-node to run ts script)
MrJustinY.S.
MrJustinY.S.OP16mo ago
I see. Thx a lot
Want results from more Discord servers?
Add your server