www

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

commit 2a27cd506d442a6d7414b9a7562002957e4bf0d4
parent 4f7e5446e8e2c55d8397d9f5a69637d16ae958eb
Author: Dan Stillman <dstillman@zotero.org>
Date:   Tue,  9 Dec 2014 18:35:03 -0500

Remove DB_REBUILD config option

I don't think anyone has used this in many years.

Diffstat:
Mchrome/content/zotero/xpcom/db.js | 15---------------
Mchrome/content/zotero/xpcom/zotero.js | 1-
2 files changed, 0 insertions(+), 16 deletions(-)

diff --git a/chrome/content/zotero/xpcom/db.js b/chrome/content/zotero/xpcom/db.js @@ -1108,21 +1108,6 @@ Zotero.DBConnection.prototype._getDBConnection = function () { var fileName = this._dbName + '.sqlite'; - if (this._dbName == 'zotero' && ZOTERO_CONFIG['DB_REBUILD']) { - if (confirm('Erase all user data and recreate database from schema?')) { - // Delete existing Zotero database - if (file.exists()) { - file.remove(null); - } - - // Delete existing storage folder - var dir = Zotero.getStorageDirectory(); - if (dir.exists()) { - dir.remove(true); - } - } - } - var ps = Components.classes["@mozilla.org/embedcomp/prompt-service;1"] .getService(Components.interfaces.nsIPromptService); diff --git a/chrome/content/zotero/xpcom/zotero.js b/chrome/content/zotero/xpcom/zotero.js @@ -25,7 +25,6 @@ const ZOTERO_CONFIG = { GUID: 'zotero@chnm.gmu.edu', - DB_REBUILD: false, // erase DB and recreate from schema REPOSITORY_URL: 'https://repo.zotero.org/repo', REPOSITORY_CHECK_INTERVAL: 86400, // 24 hours REPOSITORY_RETRY_INTERVAL: 3600, // 1 hour