fix(migration): 0045 guards json_each against scalar tagger_predictions #93
Reference in New Issue
Block a user
Delete Branch "dev"
Deleting a branch is permanent. Although the deleted branch may continue to exist for a short time before it actually gets removed, it CANNOT be undone in most cases. Continue?
Hotfix for the steps-1+2 deploy: migration 0045's backfill hit
cannot deconstruct a scalarbecause someimage_recordrows storetagger_predictionsas a JSON scalar/null, not an object —json_eachthrows on those, rolling back the whole migration (image_prediction never created; web crash-looped on the boot migration).Guard the backfill with
json_typeof = 'object'in a MATERIALIZED CTE so the type filter runs beforejson_eachever evaluates a scalar.CI green on dev
a712cef(run 849).🤖 Generated with Claude Code