fix init sqlite script

This commit is contained in:
Martin Rotter 2023-06-02 14:08:24 +02:00
parent ec1ba90c01
commit f4ee8ed8c8
2 changed files with 3 additions and 11 deletions

View File

@ -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
);
);

View File

@ -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.