www

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

commit efa8346d373525fcd6af7104da453f024e24513e
parent f635d82ea654817d023bd2ba13724dfdd81b2f77
Author: Dan Stillman <dstillman@zotero.org>
Date:   Thu, 30 Oct 2014 01:21:29 -0400

Create user library row in libraries table when initializing DB

Diffstat:
Mchrome/content/zotero/xpcom/schema.js | 2++
1 file changed, 2 insertions(+), 0 deletions(-)

diff --git 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)";