fix(migration): final cleanup - all chunks→chunk references corrected
- 009: UPDATE chunks → chunk - 010: ALTER TABLE chunks → chunk - 031: BEFORE INSERT ON chunks → chunk All migrations now fully corrected
This commit is contained in:
@@ -42,7 +42,7 @@ ON chunks USING GIN(content);
|
||||
-- ASRX chunks stored as trace_asrx_* have text in content
|
||||
-- but NULL text_content, making them invisible to BM25.
|
||||
-- ============================================================
|
||||
UPDATE chunks
|
||||
UPDATE chunk
|
||||
SET text_content = content->>'text'
|
||||
WHERE chunk_type = 'trace'
|
||||
AND chunk_id LIKE 'trace_asrx_%'
|
||||
@@ -56,7 +56,7 @@ WHERE chunk_type = 'trace'
|
||||
-- This is handled in the worker code for new imports.
|
||||
-- For existing data, we can extract object names:
|
||||
-- (commented out as it requires JSON array iteration)
|
||||
-- UPDATE chunks
|
||||
-- UPDATE chunk
|
||||
-- SET text_content = (
|
||||
-- SELECT string_agg(obj->>'class', ' ')
|
||||
-- FROM jsonb_array_elements(content->'objects') AS obj
|
||||
|
||||
Reference in New Issue
Block a user