added db builder as a node file

This commit is contained in:
Martin Donnelly 2016-04-04 15:10:56 +01:00
parent 80a720dcb3
commit bad5f52b3b

View File

@ -56,4 +56,19 @@ function prepare_db() {
});
}
prepare_db();
function createDB() {
'use strict';
exec('createdb oBrand', function(err) {
if (err !== null) {
console.log('exec error: ' + err);
return -1;
} else {
prepare_db();
}
});
}
createDB();