1
0
mirror of https://github.com/etesync/android synced 2024-11-25 17:38:13 +00:00

Fix crash when initialising database.

This bug was introduced a few commits ago, in:
9f6b63620e
This commit is contained in:
Tom Hacohen 2020-02-28 22:45:01 +02:00
parent 02022976f9
commit bb2b116723

View File

@ -159,7 +159,7 @@ public class JournalModel {
} }
@Entity @Entity
@Table(name = "EntryError", uniqueIndexes = "entry_unique_together") @Table(name = "EntryError")
public static abstract class EntryError { public static abstract class EntryError {
@Key @Key
@Generated @Generated
@ -168,7 +168,6 @@ public class JournalModel {
@Column(nullable = false) @Column(nullable = false)
String error; String error;
@Index("entry_unique_together")
@ForeignKey(update = ReferentialAction.CASCADE) @ForeignKey(update = ReferentialAction.CASCADE)
@OneToOne @OneToOne
Entry entry; Entry entry;