diff --git a/chrome/content/zotero/xpcom/schema.js b/chrome/content/zotero/xpcom/schema.js index 29bfb8281..94535da03 100644 --- a/chrome/content/zotero/xpcom/schema.js +++ b/chrome/content/zotero/xpcom/schema.js @@ -151,6 +151,10 @@ Zotero.Schema = new function(){ } insertStatement.reset(); Zotero.DB.commitTransaction(); + + Zotero.DB.beginTransaction(); + Zotero.DB.query("INSERT INTO fulltextItems SELECT DISTINCT itemID, 1 FROM fulltextItemWords"); + Zotero.DB.commitTransaction(); } catch (e) { Zotero.debug(e); @@ -1164,7 +1168,6 @@ Zotero.Schema = new function(){ Zotero.DB.query("DROP TABLE fulltextItems"); Zotero.DB.query("CREATE TABLE fulltextItems (\n itemID INT,\n version INT,\n PRIMARY KEY (itemID),\n FOREIGN KEY (itemID) REFERENCES items(itemID)\n);"); - Zotero.DB.query("INSERT INTO fulltextItems SELECT DISTINCT itemID, 1 FROM fulltextItemWords"); } if (i==36) {