From cac563f6c6a2656c74527bfa2c8b5780765baf69 Mon Sep 17 00:00:00 2001 From: Allan Wang Date: Thu, 7 Mar 2019 19:25:11 -0500 Subject: Prepare generic db --- app/src/main/kotlin/com/pitchedapps/frost/db/NotificationDb.kt | 3 +++ 1 file changed, 3 insertions(+) (limited to 'app/src/main/kotlin/com/pitchedapps/frost/db/NotificationDb.kt') diff --git a/app/src/main/kotlin/com/pitchedapps/frost/db/NotificationDb.kt b/app/src/main/kotlin/com/pitchedapps/frost/db/NotificationDb.kt index d2771754..01baa43e 100644 --- a/app/src/main/kotlin/com/pitchedapps/frost/db/NotificationDb.kt +++ b/app/src/main/kotlin/com/pitchedapps/frost/db/NotificationDb.kt @@ -119,6 +119,9 @@ interface NotificationDao { @Query("DELETE FROM notifications WHERE userId = :userId AND type = :type") fun _deleteNotifications(userId: Long, type: String) + @Query("DELETE FROM notifications") + suspend fun deleteAll() + /** * It is assumed that the notification batch comes from the same user */ -- cgit v1.2.3