mirror of
https://gitlab.silvrtree.co.uk/martind2000/obrand-admin-server.git
synced 2025-01-25 16:06:16 +00:00
added db builder as a node file
This commit is contained in:
parent
80a720dcb3
commit
bad5f52b3b
17
dbconfig.js
17
dbconfig.js
@ -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();
|
||||
|
Loading…
Reference in New Issue
Block a user