You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
This commit was created on GitHub.com and signed with GitHub’s verified signature.
What's new
Scoped PostgreSQL/SQLite .onConflictDoUpdate(...) now injects the table rule's where(scopeValue) predicate into setWhere, so cross-scope conflicts safely no-op.
Changed
Relaxed scoped PostgreSQL/SQLite .onConflictDoUpdate(...) conflict-target validation. Any conflict target is allowed while insert/update payload validators still run and scope-column reassignment still throws.
Stopped exposing raw execute on scoped wrappers; use _unsafeUnscopedDb.execute(...) when intentionally running raw SQL.
Reject aliases of scoped tables unless the alias has its own explicit scoped rule, preventing aliases from silently bypassing rule lookup.
Fixed
Prevent scoped insert/update/delete result chaining from leaking raw Drizzle builders through .returning(), a second .where(...), or $dynamic().