diff options
author | desperateCoder <echotodevnull@gmail.com> | 2020-07-21 19:06:16 +0300 |
---|---|---|
committer | desperateCoder <echotodevnull@gmail.com> | 2020-07-21 19:06:16 +0300 |
commit | da3a330f115f7dc57b9535f42bcb954bd0c8c615 (patch) | |
tree | 91d7ef5edf0aff84066308f72758fa12d65154ac /app/src/main/java/it/niedermann/nextcloud/deck/model | |
parent | 8eb6efa99af154399aec95dca5b47a5f22024b4e (diff) |
#573 Projects: fix constraint violation
Diffstat (limited to 'app/src/main/java/it/niedermann/nextcloud/deck/model')
-rw-r--r-- | app/src/main/java/it/niedermann/nextcloud/deck/model/Card.java | 2 | ||||
-rw-r--r-- | app/src/main/java/it/niedermann/nextcloud/deck/model/ocs/projects/OcsProjectResource.java | 9 |
2 files changed, 5 insertions, 6 deletions
diff --git a/app/src/main/java/it/niedermann/nextcloud/deck/model/Card.java b/app/src/main/java/it/niedermann/nextcloud/deck/model/Card.java index d0ba63f9a..f07f7ae91 100644 --- a/app/src/main/java/it/niedermann/nextcloud/deck/model/Card.java +++ b/app/src/main/java/it/niedermann/nextcloud/deck/model/Card.java @@ -1,6 +1,5 @@ package it.niedermann.nextcloud.deck.model; -import androidx.annotation.NonNull; import androidx.room.Entity; import androidx.room.ForeignKey; import androidx.room.Ignore; @@ -46,7 +45,6 @@ public class Card extends AbstractRemoteEntity { private String title; private String description; - @NonNull private Long stackId; private String type; private Date createdAt; diff --git a/app/src/main/java/it/niedermann/nextcloud/deck/model/ocs/projects/OcsProjectResource.java b/app/src/main/java/it/niedermann/nextcloud/deck/model/ocs/projects/OcsProjectResource.java index 6be149977..b4aa0f822 100644 --- a/app/src/main/java/it/niedermann/nextcloud/deck/model/ocs/projects/OcsProjectResource.java +++ b/app/src/main/java/it/niedermann/nextcloud/deck/model/ocs/projects/OcsProjectResource.java @@ -10,10 +10,11 @@ import java.io.Serializable; import it.niedermann.nextcloud.deck.model.interfaces.AbstractRemoteEntity; -@Entity(indices = { - @Index("id"), - @Index("lastModifiedLocal"), - @Index(value = {"accountId", "id", "projectId"}, unique = true), +@Entity(inheritSuperIndices = false, + indices = { + @Index(value = "id", name = "index_OcsProjectResource_id"), + @Index(value = "lastModifiedLocal", name = "index_OcsProjectResource_lastModifiedLocal"), + @Index(value = {"accountId", "id", "projectId"}, name = "index_OcsProjectResource_accountId_id", unique = true), @Index(value = "accountId", name = "index_projectResource_accID"), @Index(value = "projectId", name = "index_projectResource_projectId"), }, |