www

Unnamed repository; edit this file 'description' to name the repository.
Log | Files | Refs | Submodules | README | LICENSE

commit 526c5f8112051cd7ae3ba7b57294d9ab13c3e56b
parent f7216298b40a64ae0c72408154bed80c9a876c85
Author: Dan Stillman <dstillman@zotero.org>
Date:   Fri, 12 Jun 2015 03:11:53 -0400

Don't break Dan Cohen's library

(Though if you think about it, all of our publications may indeed become
Dan Cohen's eventually.)

Diffstat:
Mchrome/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 @@ -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')");