Replace attachmentPageIndex with synced-setting-based mechanism

The page index needs to be per-person in group libraries, and it should
still work in read-only libraries, so it doesn't make sense to store it
on the item. This uses a synced setting in the user's library instead.
This commit is contained in:
Dan Stillman 2021-02-16 07:27:46 -05:00
parent 3b61214dad
commit c8ee3196cd
5 changed files with 97 additions and 60 deletions

View file

@ -105,7 +105,6 @@ CREATE TABLE itemAttachments (
storageModTime INT,
storageHash TEXT,
lastProcessedModificationTime INT,
pageIndex INT,
FOREIGN KEY (itemID) REFERENCES items(itemID) ON DELETE CASCADE,
FOREIGN KEY (parentItemID) REFERENCES items(itemID) ON DELETE CASCADE,
FOREIGN KEY (charsetID) REFERENCES charsets(charsetID) ON DELETE SET NULL