in the middle of rewriting it

This commit is contained in:
Marc Wäckerlin
2016-11-28 16:00:39 +00:00
parent d0e32dfcae
commit ded3085d90
7 changed files with 786 additions and 710 deletions

View File

@@ -3,7 +3,6 @@ module.exports = function(config) {
var fs = require('fs');
config.multipleStatements = true;
var pool = mysql.createPool(config);
console.log(__dirname+'/schema.sql')
pool.query(fs.readFileSync(__dirname+'/schema.sql').toString());
if (config.max_allowed_packet)
pool.query("set global max_allowed_packet=?", [config.max_allowed_packet]);