Your Drizzle schema doesn't know about your triggers.
They live in a hand-written migration that one person on the team remembers. Same for extensions, column comments and partitioned tables. Drizzle can't declare them yet. They're still open requests on the drizzle-orm repo.
So I built drizzle-pg-extras. You declare them in TypeScript next to your tables:
export const touchUsers = updatedAtTrigger(users, users.updatedAt);
Run drizzle-kit generate, then drizzle-pg-extras generate, and you get an ordinary SQL migration that drizzle-kit migrate applies like any other.
→ functions, triggers, comments, extensions, partitions, TimescaleDB hypertables
→ works with Drizzle 0.x and 1.0
→ doesn't patch Drizzle. If Drizzle adds these later, the SQL you committed stays valid
0.6.1 is on npm. Point it at your schema and tell me where it breaks.
npm install drizzle-pg-extras
https://t.co/VKUocptXhY