add dc_skip_device_msg() and belonging tests

This commit is contained in:
B. Petersen
2019-11-18 16:01:15 +01:00
parent fed6f4ab8a
commit 035da9e5d7
4 changed files with 98 additions and 5 deletions

View File

@@ -815,7 +815,7 @@ fn open(
// records in the devmsglabels are kept when the message is deleted.
// so, msg_id may or may not exist.
sql.execute(
"CREATE TABLE devmsglabels (id INTEGER PRIMARY KEY AUTOINCREMENT, label TEXT, msg_id INTEGER);",
"CREATE TABLE devmsglabels (id INTEGER PRIMARY KEY AUTOINCREMENT, label TEXT, msg_id INTEGER DEFAULT 0);",
NO_PARAMS,
)?;
sql.execute(