diff --git a/chrome/content/zotero/xpcom/schema.js b/chrome/content/zotero/xpcom/schema.js index 4484615f37..4d47167924 100644 --- a/chrome/content/zotero/xpcom/schema.js +++ b/chrome/content/zotero/xpcom/schema.js @@ -2203,6 +2203,17 @@ Zotero.Schema = new function(){ yield Zotero.DB.queryAsync("DELETE FROM version WHERE schema LIKE ?", "storage_%"); } + + if (i == 82) { + yield Zotero.DB.queryAsync("DELETE FROM itemTypeFields WHERE itemTypeID=17 AND orderIndex BETWEEN 3 AND 9"); + yield Zotero.DB.queryAsync("INSERT INTO itemTypeFields VALUES (17, 44, NULL, 3)"); + yield Zotero.DB.queryAsync("INSERT INTO itemTypeFields VALUES (17, 96, NULL, 4)"); + yield Zotero.DB.queryAsync("INSERT INTO itemTypeFields VALUES (17, 117, NULL, 5)"); + yield Zotero.DB.queryAsync("INSERT INTO itemTypeFields VALUES (17, 43, NULL, 6)"); + yield Zotero.DB.queryAsync("INSERT INTO itemTypeFields VALUES (17, 97, NULL, 7)"); + yield Zotero.DB.queryAsync("INSERT INTO itemTypeFields VALUES (17, 98, NULL, 8)"); + yield Zotero.DB.queryAsync("INSERT INTO itemTypeFields VALUES (17, 42, NULL, 9)"); + } } yield _updateDBVersion('userdata', toVersion); diff --git a/resource/schema/system.sql b/resource/schema/system.sql index c074712b7d..d589d087f6 100644 --- a/resource/schema/system.sql +++ b/resource/schema/system.sql @@ -594,13 +594,13 @@ INSERT INTO itemTypeFields VALUES (16, 2, NULL, 16); INSERT INTO itemTypeFields VALUES (16, 22, NULL, 17); INSERT INTO itemTypeFields VALUES (17, 111, NULL, 1); INSERT INTO itemTypeFields VALUES (17, 90, NULL, 2); -INSERT INTO itemTypeFields VALUES (17, 43, NULL, 3); -INSERT INTO itemTypeFields VALUES (17, 97, NULL, 4); -INSERT INTO itemTypeFields VALUES (17, 44, NULL, 5); -INSERT INTO itemTypeFields VALUES (17, 117, NULL, 6); -INSERT INTO itemTypeFields VALUES (17, 98, NULL, 7); -INSERT INTO itemTypeFields VALUES (17, 42, NULL, 8); -INSERT INTO itemTypeFields VALUES (17, 96, NULL, 9); +INSERT INTO itemTypeFields VALUES (17, 44, NULL, 3); +INSERT INTO itemTypeFields VALUES (17, 96, NULL, 4); +INSERT INTO itemTypeFields VALUES (17, 117, NULL, 5); +INSERT INTO itemTypeFields VALUES (17, 43, NULL, 6); +INSERT INTO itemTypeFields VALUES (17, 97, NULL, 7); +INSERT INTO itemTypeFields VALUES (17, 98, NULL, 8); +INSERT INTO itemTypeFields VALUES (17, 42, NULL, 9); INSERT INTO itemTypeFields VALUES (17, 87, NULL, 10); INSERT INTO itemTypeFields VALUES (17, 116, NULL, 11); INSERT INTO itemTypeFields VALUES (17, 1, NULL, 12); diff --git a/resource/schema/userdata.sql b/resource/schema/userdata.sql index 8f88bc5a70..1644540675 100644 --- a/resource/schema/userdata.sql +++ b/resource/schema/userdata.sql @@ -1,4 +1,4 @@ --- 81 +-- 82 -- Copyright (c) 2009 Center for History and New Media -- George Mason University, Fairfax, Virginia, USA