Added folder namespaces

This commit is contained in:
M66B
2021-09-24 09:51:57 +02:00
parent aa467c4af4
commit ea1573c273
15 changed files with 2665 additions and 79 deletions

View File

@@ -233,6 +233,11 @@ public interface DaoFolder {
@Insert
long insertFolder(EntityFolder folder);
@Query("UPDATE folder" +
" SET namespace = :namespace, separator = :separator" +
" WHERE id = :id AND NOT (namespace IS :namespace AND separator IS :separator)")
int setFolderNamespace(long id, String namespace, Character separator);
@Query("UPDATE folder SET unified = :unified WHERE id = :id AND NOT (unified IS :unified)")
int setFolderUnified(long id, boolean unified);