Add integrity check query for empty creators
This commit is contained in:
parent
4966a55a1b
commit
662be5e198
1 changed files with 3 additions and 1 deletions
|
@ -1087,7 +1087,9 @@ Zotero.Schema = new function(){
|
|||
// TODO: check 'libraries', not 'groups', but first add a
|
||||
// migration step to delete 'libraries' rows not in 'groups'
|
||||
//"SELECT COUNT(*) FROM syncDeleteLog WHERE libraryID != 0 AND libraryID NOT IN (SELECT libraryID FROM libraries)"
|
||||
"SELECT COUNT(*) FROM syncDeleteLog WHERE libraryID != 0 AND libraryID NOT IN (SELECT libraryID FROM groups)"
|
||||
"SELECT COUNT(*) FROM syncDeleteLog WHERE libraryID != 0 AND libraryID NOT IN (SELECT libraryID FROM groups)",
|
||||
|
||||
"SELECT COUNT(*) FROM creatorData WHERE firstName='' AND lastName=''"
|
||||
];
|
||||
|
||||
for each(var sql in queries) {
|
||||
|
|
Loading…
Reference in a new issue