Commit 92308d63 authored by Andrew Cohen's avatar Andrew Cohen

Merge branch 'master' of git-bioimage.coe.drexel.edu:bioimage/leverjs

parents 4809e2d2 d0acd197
......@@ -182,7 +182,7 @@ function createNewDB(LEVERfileName,CONSTANTS,fnCompleteCallback)
// tblAlgorithms
cmd = 'DROP TABLE IF EXISTS tblAlgorithms';
lDB.exec(cmd);
cmd = 'CREATE TABLE IF NOT EXISTS tblAlgorithms (type STRING, jsAlgorithmInfo STRING)';
cmd = 'CREATE TABLE IF NOT EXISTS tblAlgorithms (fqn STRING, type STRING, jsAlgorithmInfo STRING)';
lDB.exec(cmd);
// uiExtFamilies
......
......@@ -190,6 +190,12 @@ function fixAlgorithms(lDB,fnCallback)
lDB.all(cmd, function(err,rows){
if (err)
console.error('dbUpdate: fixAlgorithms: '+err);
else if (0===rows.length)
{
// no tblAlgorithms?
cmd = 'CREATE TABLE IF NOT EXISTS tblAlgorithms (fqn STRING, type STRING, jsAlgorithmInfo STRING)';
lDB.exec(cmd);
}
else {
for (var i=0;i<rows.length;i++) {
columns.push(rows[i].name);
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment