From 526c5f8112051cd7ae3ba7b57294d9ab13c3e56b Mon Sep 17 00:00:00 2001 From: Dan Stillman Date: Fri, 12 Jun 2015 03:11:53 -0400 Subject: [PATCH] Don't break Dan Cohen's library (Though if you think about it, all of our publications may indeed become Dan Cohen's eventually.) --- chrome/content/zotero/xpcom/schema.js | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/chrome/content/zotero/xpcom/schema.js b/chrome/content/zotero/xpcom/schema.js index 83cfac6c8e..b6fe8ec003 100644 --- a/chrome/content/zotero/xpcom/schema.js +++ b/chrome/content/zotero/xpcom/schema.js @@ -1470,7 +1470,7 @@ Zotero.Schema = new function(){ var sql = "INSERT INTO libraries (libraryID, libraryType, editable, filesEditable) " + "VALUES " + "(?, 'user', 1, 1), " - + "(2, 'publications', 1, 1)" + + "(4, 'publications', 1, 1)" yield Zotero.DB.queryAsync(sql, userLibraryID); if (!Zotero.Schema.skipDefaultData) { @@ -1943,7 +1943,7 @@ Zotero.Schema = new function(){ yield Zotero.DB.queryAsync("ALTER TABLE libraries RENAME TO librariesOld"); yield Zotero.DB.queryAsync("CREATE TABLE libraries (\n libraryID INTEGER PRIMARY KEY,\n libraryType TEXT NOT NULL,\n editable INT NOT NULL,\n filesEditable INT NOT NULL,\n version INT NOT NULL DEFAULT 0,\n lastsync INT NOT NULL DEFAULT 0\n)"); yield Zotero.DB.queryAsync("INSERT INTO libraries (libraryID, libraryType, editable, filesEditable) VALUES (1, 'user', 1, 1)"); - yield Zotero.DB.queryAsync("INSERT INTO libraries (libraryID, libraryType, editable, filesEditable) VALUES (2, 'publications', 1, 1)"); + yield Zotero.DB.queryAsync("INSERT INTO libraries (libraryID, libraryType, editable, filesEditable) VALUES (4, 'publications', 1, 1)"); yield Zotero.DB.queryAsync("INSERT INTO libraries SELECT libraryID, libraryType, editable, filesEditable, 0, 0 FROM librariesOld JOIN groups USING (libraryID)"); yield Zotero.DB.queryAsync("INSERT OR IGNORE INTO syncObjectTypes VALUES (7, 'setting')");