Delete old tables

This commit is contained in:
Dan Stillman 2006-05-19 11:37:33 +00:00
parent c726b3ba77
commit c8b3863b9c
3 changed files with 9 additions and 2 deletions

View file

@ -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);
}

View file

@ -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

View file

@ -1,4 +1,4 @@
-- 8
-- 9
DROP TABLE IF EXISTS version;
CREATE TABLE version (