From 72b53e1b3ffc2297012e1d5732fca734e5b7d0a2 Mon Sep 17 00:00:00 2001 From: Dan Stillman Date: Mon, 16 Jun 2008 14:55:09 +0000 Subject: [PATCH] Don't drop all tags on DB upgrade --- chrome/content/zotero/xpcom/schema.js | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/chrome/content/zotero/xpcom/schema.js b/chrome/content/zotero/xpcom/schema.js index 94d34c1e6..48844b1f7 100644 --- a/chrome/content/zotero/xpcom/schema.js +++ b/chrome/content/zotero/xpcom/schema.js @@ -1453,7 +1453,7 @@ Zotero.Schema = new function(){ Zotero.DB.query("DROP TABLE tags"); Zotero.DB.query("CREATE TABLE tags (\n tagID INTEGER PRIMARY KEY,\n name TEXT,\n type INT,\n dateModified DEFAULT CURRENT_TIMESTAMP NOT NULL,\n key TEXT NOT NULL UNIQUE,\n UNIQUE (name, type)\n)"); var statement = Zotero.DB.getStatement("INSERT INTO tags (tagID, name, type, key) VALUES (?,?,?,?)"); - for (var j=0, len=searches.length; j