drizzle-team / drizzle-orm

Headless TypeScript ORM with a head. Runs on Node, Bun and Deno. Lives on the Edge and yes, it's a JavaScript ORM too 😅
https://orm.drizzle.team
Apache License 2.0
24.87k stars 664 forks source link

[BUG]: Drizzle Studio doesn't trigger $onUpdate on Postgres #2869

Open tanishqmanuja opened 3 months ago

tanishqmanuja commented 3 months ago

What version of drizzle-orm are you using?

0.33.0

What version of drizzle-kit are you using?

0.24.2

Describe the Bug

As it says in the title.

https://github.com/user-attachments/assets/1aa5a448-9872-433b-bd66-53429cb136dd

Expected behavior

Behavior should be consistent with that of drizzle-orm client package

https://github.com/user-attachments/assets/2a516b11-03a9-4c1d-932e-4652a628df85

Environment & setup

Windows: Microsoft Windows NT 10.0.22631.0 x64 Package Manager: Bun v1.1.26

tanishqmanuja commented 3 months ago

Ref: https://github.com/drizzle-team/drizzle-orm/pull/1509#issuecomment-2315187335

bitofbreeze commented 1 month ago

Same in sqlite