Remove synced settings from deleted libraries in integrity check

This commit is contained in:
Dan Stillman 2014-01-24 19:06:33 -05:00
parent 1f3cd9a1ae
commit 121b75ef6c

View file

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