Use REPLACE instead of INSERT for ebook schema changes
Follow-up to bdea760
(#3360), which I changed incorrectly
This commit is contained in:
parent
e3a6508134
commit
075457be45
1 changed files with 3 additions and 3 deletions
|
@ -3451,10 +3451,10 @@ Zotero.Schema = new function(){
|
||||||
}
|
}
|
||||||
|
|
||||||
else if (i == 122) {
|
else if (i == 122) {
|
||||||
await Zotero.DB.queryAsync("INSERT INTO fileTypes VALUES(8, 'ebook')");
|
await Zotero.DB.queryAsync("REPLACE INTO fileTypes VALUES(8, 'ebook')");
|
||||||
await Zotero.DB.queryAsync("INSERT INTO fileTypeMIMETypes VALUES(8, 'application/epub+zip')");
|
await Zotero.DB.queryAsync("REPLACE INTO fileTypeMIMETypes VALUES(8, 'application/epub+zip')");
|
||||||
// Incorrect, for compatibility
|
// 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()
|
// TEMP: When adding 123, check whether IA.authorName fix in items.js::_loadAnnotations()
|
||||||
|
|
Loading…
Reference in a new issue