diff --git a/chrome/chromeFiles/content/scholar/xpcom/db.js b/chrome/chromeFiles/content/scholar/xpcom/db.js index 476ac9da3f..27487d66f1 100644 --- a/chrome/chromeFiles/content/scholar/xpcom/db.js +++ b/chrome/chromeFiles/content/scholar/xpcom/db.js @@ -463,13 +463,13 @@ Scholar.DB = new function(){ } // For now, just wipe and recreate - if (i==12){ + if (i==13){ Scholar.DB.query("DROP TABLE IF EXISTS folders; " + "DROP TABLE IF EXISTS treeStructure;"); _initializeSchema(); } - if (i==13){ + if (i==14){ // do stuff // _updateDBVersion(i); } diff --git a/chrome/chromeFiles/content/scholar/xpcom/scholar.js b/chrome/chromeFiles/content/scholar/xpcom/scholar.js index cb11a58999..925b63d892 100644 --- a/chrome/chromeFiles/content/scholar/xpcom/scholar.js +++ b/chrome/chromeFiles/content/scholar/xpcom/scholar.js @@ -1,7 +1,7 @@ const SCHOLAR_CONFIG = { GUID: 'scholar@chnm.gmu.edu', DB_FILE: 'scholar.sqlite', - DB_VERSION: 12, // must match version at top of schema.sql + DB_VERSION: 13, // 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 index 3a1e469a09..31dd899958 100644 --- a/schema.sql +++ b/schema.sql @@ -1,4 +1,4 @@ --- 12 +-- 13 DROP TABLE IF EXISTS version; CREATE TABLE version ( @@ -176,6 +176,7 @@ INSERT INTO itemTypeFields VALUES (2,4,4); INSERT INTO itemTypeFields VALUES (2,5,5); INSERT INTO itemTypeFields VALUES (2,10,6); + INSERT INTO itemTypeFields VALUES (2,13,7); INSERT INTO "items" VALUES(1, 1, 'Online connections: Internet interpersonal relationships', '2006-03-12 05:24:40', '2006-03-12 05:24:40'); INSERT INTO "items" VALUES(2, 1, 'Computer-Mediated Communication: Human-to-Human Communication Across the Internet', '2006-03-12 05:25:50', '2006-03-12 05:25:50');