pull/49/head
kunfei 5 years ago
parent 974530b56f
commit 94ec767e31
  1. 2
      app/src/main/java/io/legado/app/data/dao/RssArticleDao.kt

@ -13,7 +13,7 @@ interface RssArticleDao {
@Query("select * from rssArticles where origin = :origin order by `order` desc")
fun liveByOrigin(origin: String): LiveData<List<RssArticle>>
@Insert(onConflict = OnConflictStrategy.IGNORE)
@Insert(onConflict = OnConflictStrategy.REPLACE)
fun insert(vararg rssArticle: RssArticle)
@Query("delete from rssArticles where origin = :origin and `order` < :order")

Loading…
Cancel
Save