diff --git a/chrome/content/zotero/xpcom/schema.js b/chrome/content/zotero/xpcom/schema.js index 0c9bc50a9..a5ee3fdca 100644 --- a/chrome/content/zotero/xpcom/schema.js +++ b/chrome/content/zotero/xpcom/schema.js @@ -1043,6 +1043,10 @@ Zotero.Schema = new function(){ if (i==31) { Zotero.DB.query("UPDATE itemData SET fieldID=14 WHERE itemID IN (SELECT itemID FROM items WHERE itemTypeID=15) AND fieldID=100"); } + + if (i==32) { + Zotero.DB.query("UPDATE itemData SET fieldID=100 WHERE itemID IN (SELECT itemID FROM items WHERE itemTypeID=20) AND fieldID=14;"); + } } _updateSchema('userdata'); diff --git a/userdata.sql b/userdata.sql index f70c14ea3..bac90f92f 100644 --- a/userdata.sql +++ b/userdata.sql @@ -1,4 +1,4 @@ --- 31 +-- 32 -- This file creates tables containing user-specific data -- any changes -- to existing tables made here must be mirrored in transition steps in