diff --git a/chrome/content/zotero/xpcom/schema.js b/chrome/content/zotero/xpcom/schema.js index c1a394bddf..e5463e3e77 100644 --- a/chrome/content/zotero/xpcom/schema.js +++ b/chrome/content/zotero/xpcom/schema.js @@ -3451,10 +3451,10 @@ Zotero.Schema = new function(){ } else if (i == 122) { - await Zotero.DB.queryAsync("INSERT INTO fileTypes VALUES(8, 'ebook')"); - await Zotero.DB.queryAsync("INSERT INTO fileTypeMIMETypes VALUES(8, 'application/epub+zip')"); + await Zotero.DB.queryAsync("REPLACE INTO fileTypes VALUES(8, 'ebook')"); + await Zotero.DB.queryAsync("REPLACE INTO fileTypeMIMETypes VALUES(8, 'application/epub+zip')"); // Incorrect, for compatibility - await Zotero.DB.queryAsync("INSERT INTO fileTypeMIMETypes VALUES(8, 'application/epub')"); + await Zotero.DB.queryAsync("REPLACE INTO fileTypeMIMETypes VALUES(8, 'application/epub')"); } // TEMP: When adding 123, check whether IA.authorName fix in items.js::_loadAnnotations()