The best way to control Claude Code, Codex and more from any computer or phone
Mirrored from https://github.com/Camo67/t3code.git
Synced Nov 21, 13:30 UTC
fix(server): move to Node 26.13.1 without migrations storing JSON arrays as strings (#34576)
Co-authored-by: Julius Marminge <julius0216@outlook.com>
project516 committed
Nov 14, 2026 at 12:57 UTC
fc480ea66a7c189bb83556c327eca0a161fca7b4
2 files changed
+9
-9
apps/server/src/persistence/Migrations/026_CanonicalizeModelSelectionOptions.ts
+8
-8
@@ -9,7 +9,7 @@ export default Effect.gen(function* () {
9
SET model_selection_json = json_set(
10
model_selection_json,
11
'$.options',
12
- (
12
+ json((
13
SELECT json_group_array(
14
json_object(
15
'id', key,
@@ -24,7 +24,7 @@ export default Effect.gen(function* () {
24
FROM json_each(json_extract(model_selection_json, '$.options'))
25
WHERE (type = 'text' AND trim(coalesce(atom, '')) != '')
26
OR type IN ('true', 'false')
27
- )
27
+ ))
28
)
29
WHERE model_selection_json IS NOT NULL
30
AND json_type(model_selection_json, '$.options') = 'object'
@@ -35,7 +35,7 @@ export default Effect.gen(function* () {
35
SET default_model_selection_json = json_set(
36
default_model_selection_json,
37
'$.options',
38
- (
38
+ json((
39
SELECT json_group_array(
40
json_object(
41
'id', key,
@@ -50,7 +50,7 @@ export default Effect.gen(function* () {
50
FROM json_each(json_extract(default_model_selection_json, '$.options'))
51
WHERE (type = 'text' AND trim(coalesce(atom, '')) != '')
52
OR type IN ('true', 'false')
53
- )
53
+ ))
54
)
55
WHERE default_model_selection_json IS NOT NULL
56
AND json_type(default_model_selection_json, '$.options') = 'object'
@@ -61,7 +61,7 @@ export default Effect.gen(function* () {
61
SET payload_json = json_set(
62
payload_json,
63
'$.modelSelection.options',
64
- (
64
+ json((
65
SELECT json_group_array(
66
json_object(
67
'id', key,
@@ -76,7 +76,7 @@ export default Effect.gen(function* () {
76
FROM json_each(json_extract(payload_json, '$.modelSelection.options'))
77
WHERE (type = 'text' AND trim(coalesce(atom, '')) != '')
78
OR type IN ('true', 'false')
79
- )
79
+ ))
80
)
81
WHERE event_type IN (
82
'thread.created',
@@ -91,7 +91,7 @@ export default Effect.gen(function* () {
91
SET payload_json = json_set(
92
payload_json,
93
'$.defaultModelSelection.options',
94
- (
94
+ json((
95
SELECT json_group_array(
96
json_object(
97
'id', key,
@@ -106,7 +106,7 @@ export default Effect.gen(function* () {
106
FROM json_each(json_extract(payload_json, '$.defaultModelSelection.options'))
107
WHERE (type = 'text' AND trim(coalesce(atom, '')) != '')
108
OR type IN ('true', 'false')
109
- )
109
+ ))
110
)
111
WHERE event_type IN ('project.created', 'project.meta-updated')
112
AND json_type(payload_json, '$.defaultModelSelection.options') = 'object'
package.json
+1
-1
@@ -70,7 +70,7 @@
70
"vite-plus": "catalog:"
71
},
72
"engines": {
73
- "node": "26.12.1"
73
+ "node": "26.13.1"
74
},
75
"packageManager": "pnpm@12.14.0"
76
}