Software /
code /
prosody
Diff
tools/migration/migrator/prosody_sql.lua @ 8068:5abb6bc45edd
Merge 0.10->trunk
author | Kim Alvefur <zash@zash.se> |
---|---|
date | Sun, 09 Apr 2017 01:25:58 +0200 |
parent | 8065:36d9c1226fbc |
parent | 8066:5eec340c75fb |
child | 8074:4b403f881176 |
line wrap: on
line diff
--- a/tools/migration/migrator/prosody_sql.lua Sat Apr 08 00:48:15 2017 +0200 +++ b/tools/migration/migrator/prosody_sql.lua Sun Apr 09 01:25:58 2017 +0200 @@ -161,7 +161,7 @@ local insert_sql = "INSERT INTO `prosody` (`host`,`user`,`store`,`key`,`type`,`value`) VALUES (?,?,?,?,?,?)"; return function(item) - if not item then return end -- end of input + if not item then assert(engine.conn:commit()) return end -- end of input local host = item.host or ""; local user = item.user or ""; for store, data in pairs(item.stores) do