commit c8b3863b9cdab0673067d25b87753eb6c42ce9b4
parent c726b3ba771b84306a5d01f59ce18bdcad01a52f
Author: Dan Stillman <dstillman@zotero.org>
Date: Fri, 19 May 2006 11:37:33 +0000
Delete old tables
Diffstat:
3 files changed, 9 insertions(+), 2 deletions(-)
diff --git a/chrome/chromeFiles/content/scholar/db.js b/chrome/chromeFiles/content/scholar/db.js
@@ -417,6 +417,13 @@ Scholar.DB = new function(){
}
if (i==9){
+ Scholar.DB.query("DROP TABLE IF EXISTS objectCreators; "
+ + "DROP TABLE IF EXISTS objectData; DROP TABLE IF EXISTS objectKeywords; "
+ + "DROP TABLE IF EXISTS objectTypeFields; DROP TABLE IF EXISTS objectTypes; "
+ + "DROP TABLE IF EXISTS objects; DROP TABLE IF EXISTS treeOrder;");
+ }
+
+ if (i==10){
// do stuff
// _updateDBVersion(i);
}
diff --git a/chrome/chromeFiles/content/scholar/scholar.js b/chrome/chromeFiles/content/scholar/scholar.js
@@ -1,7 +1,7 @@
const SCHOLAR_CONFIG = {
GUID: 'scholar@chnm',
DB_FILE: 'scholar.sqlite',
- DB_VERSION: 8, // must match version at top of schema.sql
+ DB_VERSION: 9, // must match version at top of schema.sql
DB_REBUILD: false, // erase DB and recreate from schema
DEBUG_LOGGING: true,
DEBUG_TO_CONSOLE: true // dump debug messages to console rather than (much slower) Debug Logger
diff --git a/schema.sql b/schema.sql
@@ -1,4 +1,4 @@
--- 8
+-- 9
DROP TABLE IF EXISTS version;
CREATE TABLE version (