Software /
code /
prosody
Comparison
plugins/mod_storage_sql.lua @ 4297:3421dfaa8188 0.8.1
mod_storage_sql: Log error when failing to update MySQL schema
author | Matthew Wild <mwild1@gmail.com> |
---|---|
date | Fri, 03 Jun 2011 05:34:22 +0100 |
parent | 4285:c806a599224a |
child | 4309:7ad81d81f5ec |
comparison
equal
deleted
inserted
replaced
4294:d2406f0ce8a5 | 4297:3421dfaa8188 |
---|---|
106 if ok and commit_ok then | 106 if ok and commit_ok then |
107 module:log("info", "Database table automatically upgraded"); | 107 module:log("info", "Database table automatically upgraded"); |
108 end | 108 end |
109 end | 109 end |
110 repeat until not stmt:fetch(); | 110 repeat until not stmt:fetch(); |
111 else | |
112 module:log("error", "Failed to upgrade database schema, please see http://prosody.im/doc/mysql for help"); | |
111 end | 113 end |
112 end | 114 end |
113 end | 115 end |
114 end | 116 end |
115 | 117 |