Add schema update step to remove dc:isReplacedBy relations
These should've all been replaced with dc:replaces relations in a schema update step, so any that exist were likely synced down from the API (since fixed) and should be obsolete/redundant.
This commit is contained in:
parent
4ac368e052
commit
5847388862
2 changed files with 6 additions and 1 deletions
|
@ -2509,6 +2509,11 @@ Zotero.Schema = new function(){
|
|||
yield Zotero.DB.queryAsync("DELETE FROM itemRelations WHERE predicateID=(SELECT predicateID FROM relationPredicates WHERE predicate='owl:sameAs') AND object LIKE ?", 'http://www.archive.org/%');
|
||||
}
|
||||
|
||||
else if (i == 99) {
|
||||
yield Zotero.DB.queryAsync("DELETE FROM itemRelations WHERE predicateID=(SELECT predicateID FROM relationPredicates WHERE predicate='dc:isReplacedBy')");
|
||||
yield Zotero.DB.queryAsync("DELETE FROM relationPredicates WHERE predicate='dc:isReplacedBy'");
|
||||
}
|
||||
|
||||
// If breaking compatibility or doing anything dangerous, clear minorUpdateFrom
|
||||
}
|
||||
|
||||
|
|
|
@ -1,4 +1,4 @@
|
|||
-- 98
|
||||
-- 99
|
||||
|
||||
-- Copyright (c) 2009 Center for History and New Media
|
||||
-- George Mason University, Fairfax, Virginia, USA
|
||||
|
|
Loading…
Add table
Reference in a new issue