Fixed folder types

This commit is contained in:
M66B
2018-12-31 10:04:18 +00:00
parent 3ee30a8662
commit 79937006ff
3 changed files with 8 additions and 3 deletions

View File

@@ -161,7 +161,8 @@ public interface DaoFolder {
@Query("UPDATE folder" +
" SET type = '" + EntityFolder.USER + "'" +
" WHERE account = :account")
" WHERE account = :account" +
" AND type <> '" + EntityFolder.SYSTEM + "'")
int setFoldersUser(long account);
@Query("UPDATE folder" +