Remove synced settings from deleted libraries in integrity check
This commit is contained in:
parent
1f3cd9a1ae
commit
121b75ef6c
1 changed files with 4 additions and 0 deletions
|
@ -1335,6 +1335,10 @@ Zotero.Schema = new function(){
|
|||
[
|
||||
"SELECT COUNT(*) FROM fulltextItems WHERE itemID NOT IN (SELECT itemID FROM items WHERE itemTypeID=14)",
|
||||
"DELETE FROM fulltextItems WHERE itemID NOT IN (SELECT itemID FROM items WHERE itemTypeID=14)"
|
||||
],
|
||||
[
|
||||
"SELECT COUNT(*) FROM syncedSettings WHERE libraryID != 0 AND libraryID NOT IN (SELECT libraryID FROM libraries)",
|
||||
"DELETE FROM syncedSettings WHERE libraryID != 0 AND libraryID NOT IN (SELECT libraryID FROM libraries)"
|
||||
]
|
||||
];
|
||||
|
||||
|
|
Loading…
Add table
Reference in a new issue