Add missing index to creatorData table

It's amazing what you can find when you actually have a profiler.
This commit is contained in:
Dan Stillman 2013-05-01 18:00:28 -04:00
parent 8bed3d44ed
commit 35f1720b08
2 changed files with 6 additions and 1 deletions

View File

@ -3329,6 +3329,10 @@ Zotero.Schema = new function(){
Zotero.DB.query("CREATE TABLE syncedSettings (\n setting TEXT NOT NULL,\n libraryID INT NOT NULL,\n value NOT NULL,\n version INT NOT NULL DEFAULT 0,\n synced INT NOT NULL DEFAULT 0,\n PRIMARY KEY (setting, libraryID)\n)");
Zotero.DB.query("INSERT OR IGNORE INTO syncObjectTypes VALUES (7, 'setting')");
}
if (i == 78) {
Zotero.DB.query("CREATE INDEX creatorData_name ON creatorData(lastName, firstName)");
}
}
_updateDBVersion('userdata2', toVersion);

View File

@ -1,4 +1,4 @@
-- 77
-- 78
-- Copyright (c) 2009 Center for History and New Media
-- George Mason University, Fairfax, Virginia, USA
@ -162,6 +162,7 @@ CREATE TABLE creatorData (
fieldMode INT,
birthYear INT
);
CREATE INDEX creatorData_name ON creatorData(lastName, firstName);
CREATE TABLE itemCreators (
itemID INT,