do not select ID at directories and media, for proper old/new comparing

This commit is contained in:
tibbi 2018-04-20 21:01:55 +02:00
parent c17b58dc53
commit 1a5ec41f8b
2 changed files with 2 additions and 2 deletions

View file

@ -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)

View file

@ -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)