in the middle of rewriting it

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

No files matched your search

-1
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]);