pre-fix snapshot: oracle pipeline (2026-07-16)

This commit is contained in:
Epictetus
2026-07-16 04:27:29 +00:00
parent 5224645703
commit af11b0952d
43 changed files with 7141 additions and 1558 deletions
+2 -2
View File
@@ -91,7 +91,7 @@ INSERT INTO entries
(source, source_id, url, title, extracted_text, summary,
category_tags, signal_score, raw_metadata, first_seen, last_updated)
VALUES (?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?)
ON CONFLICT(url) DO UPDATE SET
ON CONFLICT(source, source_id) DO UPDATE SET
source = excluded.source,
source_id = excluded.source_id,
title = excluded.title,
@@ -101,7 +101,7 @@ ON CONFLICT(url) DO UPDATE SET
signal_score = excluded.signal_score,
raw_metadata = excluded.raw_metadata,
last_updated = excluded.last_updated,
first_seen = COALESCE((SELECT first_seen FROM entries WHERE url = excluded.url), excluded.first_seen)
first_seen = COALESCE((SELECT first_seen FROM entries WHERE source = excluded.source AND source_id = excluded.source_id), excluded.first_seen)
"""