drizzle-kit generate doesn't run custom sql
In addition to my
schema.ts
file to define tables, I also have functions_and_triggers.ts
to create functions and triggers for Supabase
However when I run drizzle-kit generate
it only runs the table creation and not the other file
Here's my drizzle.config.ts
2 Replies
AFAIK you need to define your migrations manually if u want stuff that is not generated by drizzle
drizzle-kit generate custom will create an empty file you need to put your triggers/ function and custom stuff there
thanks it works now