Delete old tables
This commit is contained in:
parent
c726b3ba77
commit
c8b3863b9c
|
@ -417,6 +417,13 @@ Scholar.DB = new function(){
|
||||||
}
|
}
|
||||||
|
|
||||||
if (i==9){
|
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
|
// do stuff
|
||||||
// _updateDBVersion(i);
|
// _updateDBVersion(i);
|
||||||
}
|
}
|
||||||
|
|
|
@ -1,7 +1,7 @@
|
||||||
const SCHOLAR_CONFIG = {
|
const SCHOLAR_CONFIG = {
|
||||||
GUID: 'scholar@chnm',
|
GUID: 'scholar@chnm',
|
||||||
DB_FILE: 'scholar.sqlite',
|
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
|
DB_REBUILD: false, // erase DB and recreate from schema
|
||||||
DEBUG_LOGGING: true,
|
DEBUG_LOGGING: true,
|
||||||
DEBUG_TO_CONSOLE: true // dump debug messages to console rather than (much slower) Debug Logger
|
DEBUG_TO_CONSOLE: true // dump debug messages to console rather than (much slower) Debug Logger
|
||||||
|
|
|
@ -1,4 +1,4 @@
|
||||||
-- 8
|
-- 9
|
||||||
|
|
||||||
DROP TABLE IF EXISTS version;
|
DROP TABLE IF EXISTS version;
|
||||||
CREATE TABLE version (
|
CREATE TABLE version (
|
||||||
|
|
Loading…
Reference in New Issue
Block a user