clean up OverriddenWarnigsDao

This commit is contained in:
Vincent Breitmoser
2018-07-02 15:22:03 +02:00
parent 0f473c89d9
commit 70be2c8ba1
5 changed files with 49 additions and 45 deletions

View File

@@ -1,4 +1,16 @@
CREATE TABLE IF NOT EXISTS overridden_warnings (
_id INTEGER PRIMARY KEY AUTOINCREMENT,
identifier TEXT NOT NULL UNIQUE
);
);
selectCountByIdentifier:
SELECT COUNT(*)
FROM overridden_warnings
WHERE identifier = ?;
insertIdentifier:
INSERT OR IGNORE INTO overridden_warnings (identifier) VALUES (?);
deleteByIdentifier:
DELETE FROM overridden_warnings
WHERE identifier = ?;