Software /
code /
prosody
Comparison
plugins/mod_storage_sql.lua @ 9501:8715961bfa13
mod_storage_sql: Fix issue number in comment that was fixed by 55b40f3fa659 (fixes #1073)
author | Matthew Wild <mwild1@gmail.com> |
---|---|
date | Sat, 13 Oct 2018 08:17:58 +0100 |
parent | 9500:7de89d66cbb9 |
child | 9537:5fe1b08e6353 |
comparison
equal
deleted
inserted
replaced
9500:7de89d66cbb9 | 9501:8715961bfa13 |
---|---|
520 end | 520 end |
521 end | 521 end |
522 end | 522 end |
523 | 523 |
524 do | 524 do |
525 -- Ensure index is not unique (issue #1087) | 525 -- Ensure index is not unique (issue #1073) |
526 local result = assert(engine:execute([[SHOW INDEX FROM prosodyarchive WHERE key_name='prosodyarchive_index' and non_unique=0]])); | 526 local result = assert(engine:execute([[SHOW INDEX FROM prosodyarchive WHERE key_name='prosodyarchive_index' and non_unique=0]])); |
527 if result:rowcount() > 0 then | 527 if result:rowcount() > 0 then |
528 changes = true; | 528 changes = true; |
529 if apply_changes then | 529 if apply_changes then |
530 module:log("info", "Upgrading database schema (prosodyarchive_index)..."); | 530 module:log("info", "Upgrading database schema (prosodyarchive_index)..."); |