|
|
|
|
@ -50,14 +50,14 @@ VALUES (?, ?, ?, ?, ?, ?, ?);
|
|
|
|
|
|
|
|
|
|
upsertNewsResources:
|
|
|
|
|
INSERT INTO news_resources (id, title, content, url, header_image_url, publish_date, type)
|
|
|
|
|
VALUES (?, ?, ?, ?, ?, ?, ?);
|
|
|
|
|
-- ON CONFLICT(id) DO UPDATE SET
|
|
|
|
|
-- title = excluded.title,
|
|
|
|
|
-- content = excluded.content,
|
|
|
|
|
-- url = excluded.url,
|
|
|
|
|
-- header_image_url = excluded.header_image_url,
|
|
|
|
|
-- publish_date = excluded.publish_date,
|
|
|
|
|
-- type = excluded.type;
|
|
|
|
|
VALUES (?, ?, ?, ?, ?, ?, ?)
|
|
|
|
|
ON CONFLICT(id) DO UPDATE SET
|
|
|
|
|
title = excluded.title,
|
|
|
|
|
content = excluded.content,
|
|
|
|
|
url = excluded.url,
|
|
|
|
|
header_image_url = excluded.header_image_url,
|
|
|
|
|
publish_date = excluded.publish_date,
|
|
|
|
|
type = excluded.type;
|
|
|
|
|
|
|
|
|
|
insertOrIgnoreTopicCrossRefEntities:
|
|
|
|
|
INSERT OR IGNORE INTO news_resources_topics (news_resource_id, topic_id)
|
|
|
|
|
|