Skip to content

Commit 0aa4e11

Browse files
chuckcarpenterRobbieTheWagner
authored andcommitted
Fix JSONB type mismatch in migrate_orbit_palette_data
Use single-arrow operator (->) instead of double-arrow (->>) for colorOrder to return JSONB instead of text, matching the column type.
1 parent ec6061e commit 0aa4e11

1 file changed

Lines changed: 1 addition & 1 deletion

File tree

supabase-schema.sql

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -236,7 +236,7 @@ BEGIN
236236
(palette_data->>'isLocked')::BOOLEAN,
237237
COALESCE((palette_data->>'selectedColorIndex')::INTEGER, 0),
238238
COALESCE((palette_data->>'sortIndex')::INTEGER, 0),
239-
COALESCE(palette_data->>'colorOrder', '[]'::jsonb)
239+
COALESCE(palette_data->'colorOrder', '[]'::jsonb)
240240
)
241241
RETURNING id INTO palette_uuid;
242242

0 commit comments

Comments
 (0)