17 lines
894 B
Markdown
17 lines
894 B
Markdown
- 🎉 Added custom schema support to enums in Postgres (fixes #669 via #2048):
|
|
|
|
```ts
|
|
import { pgSchema } from 'drizzle-orm/pg-core';
|
|
|
|
const mySchema = pgSchema('mySchema');
|
|
const colors = mySchema.enum('colors', ['red', 'green', 'blue']);
|
|
```
|
|
|
|
- 🎉 Changed D1 `migrate()` function to use batch API (#2137)
|
|
- 🐛 Split `where` clause in Postgres `.onConflictDoUpdate` method into `setWhere` and `targetWhere` clauses, to support both `where` cases in `on conflict ...` clause (fixes #1628, #1302 via #2056)
|
|
- 🐛 Fixed query generation for `where` clause in Postgres `.onConflictDoNothing` method, as it was placed in a wrong spot (fixes #1628 via #2056)
|
|
- 🐛 Fixed multiple issues with AWS Data API driver (fixes #1931, #1932, #1934, #1936 via #2119)
|
|
- 🐛 Fix inserting and updating array values in AWS Data API (fixes #1912 via #1911)
|
|
|
|
Thanks @hugo082 and @livingforjesus!
|