From b76d788133e0304bd19dfc3985d3e6fdbd12df20 Mon Sep 17 00:00:00 2001 From: Dan Stillman Date: Mon, 8 Nov 2010 09:29:35 +0000 Subject: [PATCH] Fix an issue that could cause a sync error (and maybe other tag-related problems) in very old databases --- 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 7912529db..b1634d538 100644 --- a/chrome/content/zotero/xpcom/schema.js +++ b/chrome/content/zotero/xpcom/schema.js @@ -2915,6 +2915,10 @@ Zotero.Schema = new function(){ Zotero.DB.query("CREATE TABLE translatorCache (\n leafName TEXT PRIMARY KEY,\n translatorJSON TEXT,\n code TEXT,\n lastModifiedTime INT\n)"); } + if (i==76) { + Zotero.DB.query("DELETE FROM itemTags WHERE tagID IS NULL"); + } + Zotero.wait(); } diff --git a/userdata.sql b/userdata.sql index 2582bfe0f..a543cf5ae 100644 --- a/userdata.sql +++ b/userdata.sql @@ -1,4 +1,4 @@ --- 75 +-- 76 -- Copyright (c) 2009 Center for History and New Media -- George Mason University, Fairfax, Virginia, USA