Skip to content

Commit f2a1690

Browse files
committed
Update shipping, 0.41.0 docs
1 parent e8df343 commit f2a1690

File tree

6 files changed

+247
-5
lines changed

6 files changed

+247
-5
lines changed

src/content/docs/column-types/mysql.mdx

Lines changed: 5 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -160,13 +160,17 @@ CREATE TABLE `table` (
160160
import { decimal, mysqlTable } from "drizzle-orm/mysql-core";
161161

162162
const table = mysqlTable('table', {
163-
decimal: decimal()
163+
decimal: decimal(),
164+
decimalNum: decimal({ scale: 30, mode: 'number' }),
165+
decimalBig: decimal({ scale: 30, mode: 'bigint' }),
164166
});
165167
```
166168

167169
```sql
168170
CREATE TABLE `table` (
169171
`decimal` decimal,
172+
`decimalNum` decimal(30),
173+
`decimalBig` decimal(30),
170174
);
171175
```
172176
</Section>

src/content/docs/column-types/pg.mdx

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -341,6 +341,8 @@ export const table = pgTable('table', {
341341
numeric1: numeric(),
342342
numeric2: numeric({ precision: 100 }),
343343
numeric3: numeric({ precision: 100, scale: 20 }),
344+
numericNum: numeric({ mode: 'number' }),
345+
numericBig: numeric({ mode: 'bigint' }),
344346
});
345347
```
346348

@@ -349,6 +351,8 @@ CREATE TABLE IF NOT EXISTS "table" (
349351
"numeric1" numeric,
350352
"numeric2" numeric(100),
351353
"numeric3" numeric(100, 20),
354+
"numericNum" numeric,
355+
"numericBig" numeric,
352356
);
353357
```
354358
</Section>

src/content/docs/column-types/singlestore.mdx

Lines changed: 5 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -160,13 +160,17 @@ CREATE TABLE `table` (
160160
import { decimal, singlestoreTable } from "drizzle-orm/mysql-core";
161161

162162
const table = singlestoreTable('table', {
163-
decimal: decimal()
163+
decimal: decimal(),
164+
decimalNum: decimal({ scale: 30, mode: 'number' }),
165+
decimalBig: decimal({ scale: 30, mode: 'bigint' }),
164166
});
165167
```
166168

167169
```sql
168170
CREATE TABLE `table` (
169171
`decimal` decimal,
172+
`decimalNum` decimal(30),
173+
`decimalBig` decimal(30),
170174
);
171175
```
172176
</Section>

src/content/docs/column-types/sqlite.mdx

Lines changed: 23 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -211,6 +211,29 @@ CREATE TABLE `table` (
211211
```
212212
</Section>
213213

214+
### Numeric
215+
216+
<Section>
217+
```typescript
218+
import { blob, sqliteTable } from "drizzle-orm/sqlite-core";
219+
220+
const table = sqliteTable('table', {
221+
numeric: numeric(),
222+
numericNum: numeric({ mode: 'number' }),
223+
numericBig: numeric({ mode: 'bigint' }),
224+
});
225+
226+
```
227+
228+
```sql
229+
CREATE TABLE `table` (
230+
`numeric` numeric,
231+
`numericNum` numeric,
232+
`numericBig` numeric,
233+
);
234+
```
235+
</Section>
236+
214237
## ---
215238

216239
### Customizing data type

src/data/roadmap.md

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -3,7 +3,7 @@
33
### Drizzle Kit V1
44
- [x] `generated` columns support [beta branch]
55
- [x] Brocli integration to Drizzle Kit
6-
- [ ] Generated SQL migration strict mode without `try catches` and `if not exists`
6+
- [x] Generated SQL migration strict mode without `try catches` and `if not exists`
77
- [x] Drizzle Kit goes OSS steam 🎉
88
- [x] PostgreSQL enums alternations improvements
99
- [x] PostgreSQL RLS support
@@ -17,12 +17,12 @@
1717
- [x] `generated` columns support [beta branch]
1818
- [x] MySQL `.$returningIds()`
1919
- [ ] `NODE_ENV` support for embedded `.env` consumer
20-
- [ ] `mode: number` and `mode: bigint` support for PostgreSQL `decimals`
20+
- [x] `mode: number` and `mode: bigint` support for PostgreSQL `decimals`
2121
- [x] Table declarations with `(t) => ` callback to optionally omit column type imports
2222
- [ ] Down migrations, better rollbacks and improvements to `migrate` experience in Drizzle Kit
2323
- [x] Optional database aliases for columns in table declarations -> `id: serial()`
2424
- [x] PostgreSQL RLS support
25-
- [ ] Relational Queries V2 API
25+
- [x] Relational Queries V2 API
2626
- [x] `drizzle('pg', ...)` driver instantiation to lower the entrance learning curve
2727
- [ ] CockroachDB support (supported with strict SQL migrations)
2828
- [x] Native seeding

src/data/shipping.yaml

Lines changed: 207 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,211 @@
1+
2025-03:
2+
- |
3+
<b>ORM <a href='https://github.com/drizzle-team/drizzle-orm/releases/tag/0.41.0'>v0.41.0</a> release</b>
4+
5+
<ul>
6+
<li>`bigint`, `number` modes for `SQLite`, `MySQL`, `PostgreSQL`, `SingleStore` `decimal` & `numeric` column types</li>
7+
<li>Changed behavior of `sql-js` query preparation</li>
8+
<li>Fixed `MySQL`, `SingleStore` `varchar` allowing not specifying `length` in config</li>
9+
<li>Fixed `MySQL`, `SingleStore` `binary`, `varbinary` data\\type mismatches</li>
10+
<li>Fixed `numeric`\\`decimal` data\\type mismatches</li>
11+
<li>Fixed `drizzle-studio` + `AWS Data Api` connection issue</li>
12+
<li>Fixed `isConfig` utility function checking types of wrong fields</li>
13+
<li>Enabled `supportBigNumbers` in auto-created `mysql2` driver instances</li>
14+
<li>Fixed custom schema tables querying in RQBv1</li>
15+
<li>Removed in-driver mapping for postgres types</li>
16+
<li>Fixed `SQLite` `buffer`-mode `blob` sometimes returning `number[]`</li>
17+
</ul>
18+
- |
19+
<b>Drizzle Studio updates:</b>
20+
21+
<ul>
22+
<li>Added new setting option for expanding subviews.</li>
23+
<li>Added date and time pickers.</li>
24+
<li>New settings option for pagination by page or limit offset.</li>
25+
<li>Improved error handling for INSERT/UPDATE/DELETE statements in data table.</li>
26+
<li>Added column type to header cell.</li>
27+
<li>Added export in xlsx format.</li>
28+
<li>Added callback on bug report button click.</li>
29+
<li>Added ability to customize the error page.</li>
30+
<li>Added css variable for run query button color.</li>
31+
<li>Fixed issues with rowid.</li>
32+
<li>Improved SQL console with snippet system.</li>
33+
</ul>
34+
- |
35+
<b>ORM <a href='https://github.com/drizzle-team/drizzle-orm/releases/tag/0.40.1'>v0.40.1</a> release</b>
36+
37+
<ul>
38+
<li>Updates to neon-http for @neondatabase/[email protected]. Starting from this version, drizzle-orm will be compatible with both @neondatabase/serverless <1.0 and >1.0</li>
39+
</ul>
40+
41+
2025-02:
42+
- |
43+
<b>Drizzle Studio updates:</b>
44+
45+
<ul>
46+
<li>Added the ability to create/alter tables.</li>
47+
<li>Added the ability to create/alter views.</li>
48+
<li>Added the ability to refresh db schema.</li>
49+
<li>Improved dropdowns.</li>
50+
<li>Improved style customization.</li>
51+
<li>Added filter by entity type (table/view).</li>
52+
<li>Revised dependency tree and reduced bundle size.</li>
53+
<li>Added database metadata to bug report.</li>
54+
<li>Added range selection with copy/paste capability.</li>
55+
</ul>
56+
- |
57+
<b>ORM <a href='https://github.com/drizzle-team/drizzle-orm/releases/tag/0.40.0'>v0.40.0</a> release</b>
58+
59+
<ul>
60+
<li>Drizzle is getting a new Gel dialect with its own types and Gel-specific logic. In this first iteration, almost all query-building features have been copied from the PostgreSQL dialect since Gel is fully PostgreSQL-compatible. The only change in this iteration is the data types. The Gel dialect has a different set of available data types, and all mappings for these types have been designed to avoid any extra conversions on Drizzle's side. This means you will insert and select exactly the same data as supported by the Gel protocol.</li>
61+
</ul>
62+
- |
63+
<b>Kit <a href='https://github.com/drizzle-team/drizzle-orm/releases/tag/drizzle-kit%400.30.5'>v0.30.5</a> release</b>
64+
65+
<ul>
66+
<li>Drizzle is getting a new Gel dialect with its own types and Gel-specific logic. Kit is getting new "gel" dialect option</li>
67+
</ul>
68+
69+
2025-01:
70+
- |
71+
<b>ORM <a href='https://github.com/drizzle-team/drizzle-orm/releases/tag/0.39.1'>v0.39.1</a> release</b>
72+
73+
<ul>
74+
<li>Fixed SQLite onConflict clauses being overwritten instead of stacked</li>
75+
<li>Added view support to aliasedTable()</li>
76+
<li>Fixed sql builder prefixing aliased views and tables with their schema</li>
77+
</ul>
78+
- |
79+
<b>Kit <a href='https://github.com/drizzle-team/drizzle-orm/releases/tag/drizzle-kit%400.30.4'>v0.30.4</a> release</b>
80+
81+
<ul>
82+
<li>Fix bug that generates incorrect syntax when introspect in mysql</li>
83+
<li>Fix a bug that caused incorrect syntax output when introspect in unsigned columns</li>
84+
</ul>
85+
- |
86+
<ul>
87+
<b>Bug Fixes</b>
88+
<li>Allow INSERT in CTEs (WITH clauses)]</li>
89+
<li>Support Raw SQL in CTE Query Builder]</li>
90+
<li>Include pre-defined database objects related to Neon Identity in drizzle-orm]</li>
91+
<li>$count is undefined on withReplicas]</li>
92+
<li>get[Materialized]ViewName, ie getTableName but for (materialized) views.]</li>
93+
<li>$count API error with vercel-postgres]</li>
94+
<li>Cannot use schema.coerce on refining drizzle-zod types]</li>
95+
<li>Type Coercion in drizzle-zod]</li>
96+
<li>The inferred type of X cannot be named without a reference ... </li>
97+
<li>drizzle-zod excessively deep and possibly infinite types]</li>
98+
</ul>
99+
- |
100+
<b>ORM <a href='https://github.com/drizzle-team/drizzle-orm/releases/tag/0.39.0'>v0.39.0</a> release</b>
101+
102+
<ul>
103+
<li>You can now use the new Bun SQL driver released in Bun v1.2.0 with Drizzle</li>
104+
<li>WITH now supports INSERT, UPDATE, DELETE and raw sql template</li>
105+
<li>New tables in /neon import</li>
106+
<li>Added getViewName util function</li>
107+
</ul>
108+
- |
109+
<b>Kit <a href='https://github.com/drizzle-team/drizzle-orm/releases/tag/drizzle-kit%400.30.3'>v0.30.3</a> release</b>
110+
111+
<ul>
112+
<li>As SingleStore did not support certain DDL statements before this release, you might encounter an error indicating that some schema changes cannot be applied due to a database issue. Starting from this version, drizzle-kit will detect such cases and initiate table recreation with data transfer between the tables</li>
113+
</ul>
114+
1115
2024-12:
116+
- |
117+
<b>drizzle-seed <a href='https://github.com/drizzle-team/drizzle-orm/blob/main/changelogs/drizzle-seed/0.3.0.md'>v0.3.0</a> release</b>
118+
119+
<ul>
120+
<li>The seed function can now accept Drizzle Relations objects and treat them as foreign key constraints</li>
121+
</ul>
122+
- |
123+
<b>ORM <a href='https://github.com/drizzle-team/drizzle-orm/releases/tag/0.38.3'>v0.38.3</a> release</b>
124+
125+
<ul>
126+
<li>Fix incorrect deprecation detection for table declarations</li>
127+
<li>SingleStore dialect support for all validator packages</li>
128+
</ul>
129+
- |
130+
<b>drizzle-seed <a href='https://github.com/drizzle-team/drizzle-orm/blob/main/changelogs/drizzle-seed/0.2.1.md'>v0.2.1</a> release</b>
131+
132+
<ul>
133+
<li>We are introducing a new parameter, version, to the seed function options. This parameter, which controls generator versioning, has been added to make it easier to update deterministic generators in the future.</li>
134+
<li>interval unique generator was changed and upgraded to v2</li>
135+
<li>string generators were changed and upgraded to v2</li>
136+
</ul>
137+
- |
138+
<b>ORM <a href='https://github.com/drizzle-team/drizzle-orm/releases/tag/0.38.2'>v0.38.2</a> release</b>
139+
140+
<ul>
141+
<li>New features for MySQL users: USE INDEX, FORCE INDEX and IGNORE INDEX for MySQL</li>
142+
</ul>
143+
- |
144+
<b>Kit <a href='https://github.com/drizzle-team/drizzle-orm/releases/tag/drizzle-kit%400.30.1'>v0.30.1</a> release</b>
145+
146+
<ul>
147+
<li>New command: drizzle-kit export</li>
148+
</ul>
149+
- |
150+
<b>drizzle-seed <a href='https://github.com/drizzle-team/drizzle-orm/blob/main/changelogs/drizzle-seed/0.1.3.md'>v0.1.3</a> release</b>
151+
152+
<ul>
153+
<li>Added support for postgres uuid columns</li>
154+
<li>Added support for postgres array columns</li>
155+
<li>Added support for cyclic tables. You can now seed tables with cyclic relations.</li>
156+
</ul>
157+
158+
<ul>
159+
<b>Bug Fixes</b>
160+
<li>[BUG]: reset fails with a syntax error if using a - in pgTableCreator to prefix tables</li>
161+
<li>seeding a table with columns that have .default(sql``) will result in an error</li>
162+
</ul>
163+
- |
164+
ORM bug fixes
165+
166+
<ul>
167+
<li>[FEATURE]: publish packages un-minified</li>
168+
<li>Don't allow unknown keys in drizzle-zod refinement</li>
169+
<li>[BUG]:drizzle-zod not working with pgSchema</li>
170+
<li>Add createUpdateSchema to drizzle-zod</li>
171+
<li>[BUG]:drizzle-zod produces wrong type</li>
172+
<li>[BUG]:Drizzle-zod:Boolean and Serial types from Schema are defined as enum<unknown> when using CreateInsertSchema and CreateSelectSchema</li>
173+
<li>[BUG]: Drizzle typebox enum array wrong schema and type</li>
174+
<li>[BUG]:drizzle-zod not working with pgSchema</li>
175+
<li>[BUG]: drizzle-zod not parsing arrays correctly</li>
176+
<li>[BUG]: Drizzle typebox not supporting array</li>
177+
<li>[FEATURE]: Export factory functions from drizzle-zod to allow usage with extended Zod classes</li>
178+
<li>[FEATURE]: Add support for new pipe syntax for drizzle-valibot</li>
179+
<li>[BUG]: drizzle-zod's createInsertSchema() can't handle column of type vector</li>
180+
<li>[BUG]: drizzle-typebox fails to map geometry column to type-box schema</li>
181+
<li>[BUG]: drizzle-valibot does not provide types for returned schemas</li>
182+
<li>[BUG]: Drizzle-typebox types SQLite real field to string</li>
183+
<li>[BUG]: drizzle-zod: documented usage generates type error with exactOptionalPropertyTypes</li>
184+
<li>[BUG]: drizzle-zod does not respect/count db type range</li>
185+
<li>[BUG]: drizzle-zod not overriding optional</li>
186+
<li>[BUG]:drizzle-zod doesn't accept custom id value</li>
187+
<li>[FEATURE]: Support for Database Views in Drizzle Zod</li>
188+
<li>[BUG]: drizzle-valibot return type any</li>
189+
<li>[BUG]: drizzle-zod Type generation results in undefined types</li>
190+
<li>[BUG]: GeneratedAlwaysAs</li>
191+
<li>[FEATURE]: $inferSelect on a view</li>
192+
<li>[BUG]:Can't infer props from view in schema</li>
193+
</ul>
194+
- |
195+
<b>ORM <a href='https://github.com/drizzle-team/drizzle-orm/releases/tag/0.38.0'>v0.38.0</a> release</b>
196+
197+
<ul>
198+
<li>Added new function getViewSelectedFields</li>
199+
<li>Added $inferSelect function to views</li>
200+
<li>Added InferSelectViewModel type for views</li>
201+
<li>Added isView function</li>
202+
</ul>
203+
- |
204+
<b>Kit <a href='https://github.com/drizzle-team/drizzle-orm/releases/tag/drizzle-kit%400.30.0'>v0.30.0</a> release</b>
205+
206+
Starting from this update, the PostgreSQL dialect will align with the behavior of all other dialects.
207+
It will no longer include IF NOT EXISTS, $DO, or similar statements, which could cause
208+
incorrect DDL statements to not fail when an object already exists in the database and should actually fail.
2209
- |
3210
<b>Kit <a href='https://github.com/drizzle-team/drizzle-orm/releases/tag/drizzle-kit%400.29.0'>v0.29.0</a> release</b>
4211
and <b>ORM <a href='https://github.com/drizzle-team/drizzle-orm/releases/tag/0.37.0'>v0.37.0</a> release</b>

0 commit comments

Comments
 (0)