mirror of
https://gitlab.silvrtree.co.uk/martind2000/mdot_mqtt.git
synced 2025-01-10 20:55:07 +00:00
sql
This commit is contained in:
parent
15ebc0929c
commit
410ebd5beb
@ -9,7 +9,7 @@ var exec = require('child_process').exec;
|
||||
|
||||
|
||||
function prepare_db() {
|
||||
exec('psql -Upostgres -d mdot -h localhost -f ./mdot.sql', function(err) {
|
||||
exec('psql -Upostgres -h localhost -f ./mdot.sql', function(err) {
|
||||
if (err !== null) {
|
||||
console.log('exec error: ' + err);
|
||||
return -1;
|
||||
@ -35,4 +35,4 @@ function createDB() {
|
||||
}
|
||||
|
||||
|
||||
createDB();
|
||||
prepare_db();
|
||||
|
Loading…
Reference in New Issue
Block a user