From 06cb2b8354fca4a22ee95f8959a34f18bbf32c49 Mon Sep 17 00:00:00 2001 From: Dan Stillman Date: Wed, 21 Mar 2007 20:40:33 +0000 Subject: [PATCH] Fix migration of date field to dateEnacted in report item type --- chrome/content/zotero/xpcom/schema.js | 4 ++++ userdata.sql | 2 +- 2 files changed, 5 insertions(+), 1 deletion(-) diff --git a/chrome/content/zotero/xpcom/schema.js b/chrome/content/zotero/xpcom/schema.js index 65078829ad..27e02e0908 100644 --- a/chrome/content/zotero/xpcom/schema.js +++ b/chrome/content/zotero/xpcom/schema.js @@ -858,6 +858,10 @@ Zotero.Schema = new function(){ } } } + + if (i==25) { + Zotero.DB.query("UPDATE itemData SET fieldID=100 WHERE itemID IN (SELECT itemID FROM items WHERE itemTypeID=15) AND fieldID=14;") + } } _updateSchema('userdata'); diff --git a/userdata.sql b/userdata.sql index 64042aae42..65c7525b37 100644 --- a/userdata.sql +++ b/userdata.sql @@ -1,4 +1,4 @@ --- 24 +-- 25 -- This file creates tables containing user-specific data -- any changes -- to existing tables made here must be mirrored in transition steps in