fix video blob

This commit is contained in:
Marc Wäckerlin
2016-01-13 15:54:50 +00:00
parent 343bdd8c7c
commit f1042a1c2c
4 changed files with 39 additions and 16 deletions

View File

@@ -6,6 +6,8 @@ module.exports = function() {
var pool = mysql.createPool(config);
pool.query(fs.readFileSync(__dirname+'/schema.sql').toString());
if (config.max_allowed_packet)
pool.query("set global max_allowed_packet=?", [config.max_allowed_packet]);
return pool;
};