Include custom attr table in database cleanup
This commit is contained in:
@@ -47,4 +47,7 @@ interface BackupRestoreDao {
|
||||
|
||||
@Insert(onConflict = OnConflictStrategy.REPLACE)
|
||||
suspend fun importCustomAttributes(items: List<CustomAttributeEntity>)
|
||||
|
||||
@Query("DELETE FROM CustomAttributes WHERE (type = 'tag' OR type = 'label') AND NOT EXISTS(SELECT 1 FROM Searchable WHERE CustomAttributes.key = Searchable.key)")
|
||||
suspend fun cleanUp(): Int
|
||||
}
|
||||
Reference in New Issue
Block a user