Fix callback, add some WIP commented out concepts

This commit is contained in:
Bryan Ashby 2016-01-03 15:53:27 -07:00
parent 443d4c16d4
commit f3b98c5644

View file

@ -61,7 +61,9 @@ function initializeDatabases(cb) {
}); });
} }
], ],
cb function complete(err) {
cb(err);
}
); );
} }
@ -72,6 +74,20 @@ function createSystemTables() {
' prop_value VARCHAR NOT NULL' + ' prop_value VARCHAR NOT NULL' +
');' ');'
); );
//
// system_log can round log_timestamp for daily, monthly, etc.
// statistics as well as unique entries.
//
/*
dbs.system.run(
'CREATE TABLE IF NOT EXISTS system_log (' +
' log_timestamp DATETIME PRIMARY KEY NOT NULL ( ' +
' log_name VARCHARNOT NULL,' +
' log_value VARCHAR NOT NULL,' +
' UNIQUE(log_timestamp, log_name)' +
');'
);*/
} }
function createUserTables() { function createUserTables() {