Fix ingestion conflicts and local report date
This commit is contained in:
@@ -105,7 +105,7 @@ BEGIN
|
||||
'published',
|
||||
'skipped'
|
||||
)
|
||||
ON CONFLICT (report_date) DO UPDATE SET
|
||||
ON CONFLICT ON CONSTRAINT uq_daily_reports_report_date DO UPDATE SET
|
||||
title = EXCLUDED.title,
|
||||
introduction = EXCLUDED.introduction,
|
||||
status = 'published',
|
||||
@@ -123,7 +123,7 @@ BEGIN
|
||||
importance_score >= 85
|
||||
FROM news_articles
|
||||
WHERE id = v_article_id
|
||||
ON CONFLICT (report_id, article_id) DO UPDATE SET
|
||||
ON CONFLICT ON CONSTRAINT report_articles_pkey DO UPDATE SET
|
||||
section = EXCLUDED.section,
|
||||
display_order = EXCLUDED.display_order,
|
||||
is_highlight = EXCLUDED.is_highlight;
|
||||
|
||||
Reference in New Issue
Block a user