Fix typos in sq file

pull/1323/head
lihenggui 2 years ago
parent 0c3414aae8
commit 63835eb5c5

@ -126,8 +126,12 @@ class NewsResourceDao(db: NiaDatabase, private val dispatcher: CoroutineDispatch
suspend fun insertOrIgnoreTopicCrossRefEntities(
newsResourceTopicCrossReferences: List<NewsResourceTopicCrossRef>,
) {
// TODO Consider removing cross references
// query.insertOrIgnoreNewsResourceTopicCrossRefs(newsResourceTopicCrossReferences)
newsResourceTopicCrossReferences.forEach {
query.insertOrIgnoreTopicCrossRefEntitiy(
news_resource_id = it.newsResourceId,
topic_id = it.topicId,
)
}
}
/**

@ -59,7 +59,7 @@ header_image_url = excluded.header_image_url,
publish_date = excluded.publish_date,
type = excluded.type;
insertOrIgnoreTopicCrossRefEntities:
insertOrIgnoreTopicCrossRefEntitiy:
INSERT OR IGNORE INTO news_resources_topics (news_resource_id, topic_id)
VALUES (?, ?);

@ -6,6 +6,6 @@ CREATE TABLE IF NOT EXISTS news_resources_topics (
FOREIGN KEY (topic_id) REFERENCES topic(id) ON DELETE CASCADE
);
CREATE INDEX idx_news_resource_id ON news_resource_topic(news_resource_id);
CREATE INDEX idx_news_resource_id ON news_resources_topics(news_resource_id);
CREATE INDEX idx_topic_id ON news_resource_topic(topic_id);
CREATE INDEX idx_topic_id ON news_resources_topics(topic_id);

Loading…
Cancel
Save