From efa8346d373525fcd6af7104da453f024e24513e Mon Sep 17 00:00:00 2001 From: Dan Stillman Date: Thu, 30 Oct 2014 01:21:29 -0400 Subject: [PATCH] Create user library row in libraries table when initializing DB --- chrome/content/zotero/xpcom/schema.js | 2 ++ 1 file changed, 2 insertions(+) diff --git a/chrome/content/zotero/xpcom/schema.js b/chrome/content/zotero/xpcom/schema.js index b48041f62..46e914fc8 100644 --- a/chrome/content/zotero/xpcom/schema.js +++ b/chrome/content/zotero/xpcom/schema.js @@ -1409,6 +1409,8 @@ Zotero.Schema = new function(){ }); yield _updateDBVersion('compatibility', _maxCompatibility); + yield Zotero.DB.queryAsync("INSERT INTO libraries VALUES (0, 'user', 0)"); + if (!Zotero.Schema.skipDefaultData) { // Quick Start Guide web page item var sql = "INSERT INTO items VALUES(1, 13, CURRENT_TIMESTAMP, CURRENT_TIMESTAMP, CURRENT_TIMESTAMP, 0, 'ABCD2345', 0, 0)";