mirror of
https://github.com/FossifyOrg/Gallery.git
synced 2024-11-30 08:18:00 +01:00
do not select ID at directories and media, for proper old/new comparing
This commit is contained in:
parent
c17b58dc53
commit
1a5ec41f8b
2 changed files with 2 additions and 2 deletions
|
@ -9,7 +9,7 @@ import com.simplemobiletools.gallery.models.Directory
|
|||
|
||||
@Dao
|
||||
interface DirectoryDao {
|
||||
@Query("SELECT * FROM directories")
|
||||
@Query("SELECT path, thumbnail, filename, media_count, last_modified, date_taken, size, is_on_sd_card FROM directories")
|
||||
fun getAll(): List<Directory>
|
||||
|
||||
@Insert(onConflict = REPLACE)
|
||||
|
|
|
@ -11,7 +11,7 @@ interface MediumDao {
|
|||
@Query("SELECT * FROM media")
|
||||
fun getAll(): List<Medium>
|
||||
|
||||
@Query("SELECT * FROM media WHERE parent_path = :path")
|
||||
@Query("SELECT filename, full_path, parent_path, last_modified, date_taken, size, type FROM media WHERE parent_path = :path")
|
||||
fun getMediaFromPath(path: String): List<Medium>
|
||||
|
||||
@Insert(onConflict = REPLACE)
|
||||
|
|
Loading…
Reference in a new issue