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:
parent
3b61214dad
commit
c8ee3196cd
5 changed files with 97 additions and 60 deletions
|
@ -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
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue