Workaround server bug

This commit is contained in:
M66B
2019-09-21 13:33:04 +02:00
parent 18def0c4c4
commit 9ac9b08f5f
2 changed files with 28 additions and 0 deletions

View File

@@ -23,6 +23,7 @@ import androidx.lifecycle.LiveData;
import androidx.room.Dao;
import androidx.room.Insert;
import androidx.room.Query;
import androidx.room.Update;
import java.util.List;
@@ -100,6 +101,9 @@ public interface DaoAttachment {
@Insert
long insertAttachment(EntityAttachment attachment);
@Update
int updateAttachment(EntityAttachment attachment);
@Query("DELETE FROM attachment" +
" WHERE id = :id")
int deleteAttachment(long id);