fix Favorite items getting removed at emptying the recycle bin
This commit is contained in:
parent
9221c44533
commit
47636f8b0a
1 changed files with 1 additions and 1 deletions
|
@ -33,7 +33,7 @@ interface MediumDao {
|
||||||
@Query("DELETE FROM media WHERE full_path = :path COLLATE NOCASE")
|
@Query("DELETE FROM media WHERE full_path = :path COLLATE NOCASE")
|
||||||
fun deleteMediumPath(path: String)
|
fun deleteMediumPath(path: String)
|
||||||
|
|
||||||
@Query("DELETE FROM media WHERE deleted_ts < :timestmap")
|
@Query("DELETE FROM media WHERE deleted_ts < :timestmap AND deleted_ts != 0")
|
||||||
fun deleteOldRecycleBinItems(timestmap: Long)
|
fun deleteOldRecycleBinItems(timestmap: Long)
|
||||||
|
|
||||||
@Query("UPDATE OR REPLACE media SET filename = :newFilename, full_path = :newFullPath, parent_path = :newParentPath WHERE full_path = :oldPath COLLATE NOCASE")
|
@Query("UPDATE OR REPLACE media SET filename = :newFilename, full_path = :newFullPath, parent_path = :newParentPath WHERE full_path = :oldPath COLLATE NOCASE")
|
||||||
|
|
Loading…
Reference in a new issue