Do not use mysql command for setting up databases
This commit is contained in:
parent
b93afd4f9f
commit
873d88658c
7 changed files with 94 additions and 49 deletions
14
setup/sql/init.js
Normal file
14
setup/sql/init.js
Normal file
|
@ -0,0 +1,14 @@
|
|||
'use strict';
|
||||
|
||||
let dbcheck = require('../../lib/dbcheck');
|
||||
let log = require('npmlog');
|
||||
|
||||
log.level = 'verbose';
|
||||
|
||||
dbcheck(err => {
|
||||
if (err) {
|
||||
log.error('DB', err);
|
||||
return process.exit(1);
|
||||
}
|
||||
return process.exit(0);
|
||||
});
|
Loading…
Add table
Add a link
Reference in a new issue