Delete child tasks when parent task is deleted
This commit is contained in:
parent
dbfa1880b7
commit
5ca7a67d61
|
@ -103,7 +103,7 @@ interface EventsDao {
|
||||||
@Query("SELECT id FROM events WHERE event_type IN (:eventTypeIds) AND type = $TYPE_EVENT")
|
@Query("SELECT id FROM events WHERE event_type IN (:eventTypeIds) AND type = $TYPE_EVENT")
|
||||||
fun getEventIdsByEventType(eventTypeIds: List<Long>): List<Long>
|
fun getEventIdsByEventType(eventTypeIds: List<Long>): List<Long>
|
||||||
|
|
||||||
@Query("SELECT id FROM events WHERE parent_id IN (:parentIds) AND type = $TYPE_EVENT")
|
@Query("SELECT id FROM events WHERE parent_id IN (:parentIds)")
|
||||||
fun getEventIdsWithParentIds(parentIds: List<Long>): List<Long>
|
fun getEventIdsWithParentIds(parentIds: List<Long>): List<Long>
|
||||||
|
|
||||||
@Query("SELECT id FROM events WHERE source = :source AND import_id != \"\" AND type = $TYPE_EVENT")
|
@Query("SELECT id FROM events WHERE source = :source AND import_id != \"\" AND type = $TYPE_EVENT")
|
||||||
|
|
Loading…
Reference in New Issue