10 lines
547 B
Markdown
10 lines
547 B
Markdown
- 🎉 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) |