Back to Drizzle Orm

0.30.7 Preview

changelogs/drizzle-orm/0.30.7-preview.md

0.45.2547 B
Original Source
  • 🎉 Added custom schema support to enums in Postgres:

    ts
    import { pgSchema } from 'drizzle-orm/pg-core';
    
    const mySchema = pgSchema('mySchema');
    const colors = mySchema.enum('colors', ['red', 'green', 'blue']);
    
  • 🐛 Split where clause in Postgres .onConflictDoUpdate method into setWhere and targetWhere clauses, to support both where cases in on conflict ... clause (#1628, #1302)

  • 🐛 Fix query generation for where clause in Postgres .onConflictDoNothing method, as it was placed in a wrong spot (#1628)