Skip to content

Commit

Permalink
Remove old archive.org relations
Browse files Browse the repository at this point in the history
These aren't allowed by the API and were breaking syncing (and haven't
been exposed anywhere for years anyway).
  • Loading branch information
dstillman committed Sep 22, 2017
1 parent 42e2f22 commit da21c9c
Show file tree
Hide file tree
Showing 2 changed files with 5 additions and 1 deletion.
4 changes: 4 additions & 0 deletions chrome/content/zotero/xpcom/schema.js
Expand Up @@ -2479,6 +2479,10 @@ Zotero.Schema = new function(){
yield Zotero.DB.queryAsync("DELETE FROM relationPredicates " + where);
}

else if (i == 98) {
yield Zotero.DB.queryAsync("DELETE FROM itemRelations WHERE predicateID=(SELECT predicateID FROM relationPredicates WHERE predicate='owl:sameAs') AND object LIKE ?", 'http://www.archive.org/%');
}

// If breaking compatibility or doing anything dangerous, clear minorUpdateFrom
}

Expand Down
2 changes: 1 addition & 1 deletion resource/schema/userdata.sql
@@ -1,4 +1,4 @@
-- 97
-- 98

-- Copyright (c) 2009 Center for History and New Media
-- George Mason University, Fairfax, Virginia, USA
Expand Down

0 comments on commit da21c9c

Please sign in to comment.