mirror of
https://github.com/omnivore-app/omnivore.git
synced 2026-03-11 08:54:26 +00:00
Cascade highlight deletes
This commit is contained in:
parent
6d3b4ad08a
commit
ca4c05f11d
2 changed files with 2 additions and 1 deletions
|
|
@ -13,7 +13,7 @@ import app.omnivore.omnivore.persistence.entities.*
|
|||
SavedItemAndSavedItemLabelCrossRef::class,
|
||||
SavedItemAndHighlightCrossRef::class
|
||||
],
|
||||
version = 7
|
||||
version = 8
|
||||
)
|
||||
abstract class AppDatabase : RoomDatabase() {
|
||||
abstract fun viewerDao(): ViewerDao
|
||||
|
|
|
|||
|
|
@ -34,6 +34,7 @@ data class Highlight(
|
|||
entity = Highlight::class,
|
||||
parentColumns = arrayOf("highlightId"),
|
||||
childColumns = arrayOf("highlightId"),
|
||||
onDelete = ForeignKey.CASCADE
|
||||
),
|
||||
ForeignKey(
|
||||
entity = SavedItem::class,
|
||||
|
|
|
|||
Loading…
Reference in a new issue