From f4ee8ed8c84be0105ae278d796aeab5e3d275382 Mon Sep 17 00:00:00 2001 From: Martin Rotter Date: Fri, 2 Jun 2023 14:08:24 +0200 Subject: [PATCH] fix init sqlite script --- resources/sql/db_init_sqlite.sql | 12 ++---------- src/librssguard/core/feedsproxymodel.cpp | 2 +- 2 files changed, 3 insertions(+), 11 deletions(-) diff --git a/resources/sql/db_init_sqlite.sql b/resources/sql/db_init_sqlite.sql index 74bddf201..9810a1034 100644 --- a/resources/sql/db_init_sqlite.sql +++ b/resources/sql/db_init_sqlite.sql @@ -69,7 +69,7 @@ CREATE TABLE Messages ( account_id INTEGER NOT NULL, custom_id TEXT, custom_hash TEXT, - labels TEXT NOT NULL DEFAULT "." /* Holds list of assigned label IDs. */ + labels TEXT NOT NULL DEFAULT ".", /* Holds list of assigned label IDs. */ FOREIGN KEY (account_id) REFERENCES Accounts (id) ON DELETE CASCADE ); @@ -97,12 +97,4 @@ CREATE TABLE Labels ( account_id INTEGER NOT NULL, FOREIGN KEY (account_id) REFERENCES Accounts (id) ON DELETE CASCADE -); --- ! -CREATE TABLE LabelsInMessages ( - label TEXT NOT NULL, /* Custom ID of label. */ - message TEXT NOT NULL, /* Custom ID of message. */ - account_id INTEGER NOT NULL, - - FOREIGN KEY (account_id) REFERENCES Accounts (id) ON DELETE CASCADE -); +); \ No newline at end of file diff --git a/src/librssguard/core/feedsproxymodel.cpp b/src/librssguard/core/feedsproxymodel.cpp index 57719f123..d605beabd 100644 --- a/src/librssguard/core/feedsproxymodel.cpp +++ b/src/librssguard/core/feedsproxymodel.cpp @@ -368,7 +368,7 @@ bool FeedsProxyModel::filterAcceptsRowInternal(int source_row, const QModelIndex return QSortFilterProxyModel::filterAcceptsRow(source_row, source_parent); } else { - // NOTE: If item has < 0 of unread message it may mean, that the count + // NOTE: If item has < 0 of unread messages it may mean, that the count // of unread messages is not (yet) known, display that item too. // // Also, the actual selected item should not be filtered out too.