From f1d6f45bc8a0baabc962bd6834b4ba3e2d7dd624 Mon Sep 17 00:00:00 2001 From: Dan Stillman Date: Mon, 23 Apr 2007 23:06:24 +0000 Subject: [PATCH] Repeat the statute date->dateEnacted migration step, since the itemTypeField mapping in system.sql wasn't changed until later --- 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 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