Skip to content

Commit

Permalink
fix init sqlite script
Browse files Browse the repository at this point in the history
  • Loading branch information
martinrotter committed Jun 2, 2023
1 parent ec1ba90 commit f4ee8ed
Show file tree
Hide file tree
Showing 2 changed files with 3 additions and 11 deletions.
12 changes: 2 additions & 10 deletions resources/sql/db_init_sqlite.sql
Original file line number Diff line number Diff line change
Expand Up @@ -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
);
Expand Down Expand Up @@ -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
);
);
2 changes: 1 addition & 1 deletion src/librssguard/core/feedsproxymodel.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -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.
Expand Down

0 comments on commit f4ee8ed

Please sign in to comment.