Comparison

plugins/mod_storage_sql2.lua @ 6755:b80202ad47e8

mod_storage_sql2: Add missing return to upgrade_table(), so we know if an upgrade is required
author Matthew Wild <mwild1@gmail.com>
date Tue, 07 Jul 2015 17:40:23 +0100
parent 6754:c72b00dade25
child 6756:2e75b94e3a1e
comparison
equal deleted inserted replaced
6754:c72b00dade25 6755:b80202ad47e8
374 if not success then 374 if not success then
375 module:log("error", "Failed to check/upgrade database encoding: %s", err or "unknown error"); 375 module:log("error", "Failed to check/upgrade database encoding: %s", err or "unknown error");
376 return false; 376 return false;
377 end 377 end
378 end 378 end
379 return changes;
379 end 380 end
380 381
381 local function normalize_params(params) 382 local function normalize_params(params)
382 if params.driver == "SQLite3" then 383 if params.driver == "SQLite3" then
383 params.database = resolve_relative_path(prosody.paths.data or ".", params.database or "prosody.sqlite"); 384 params.database = resolve_relative_path(prosody.paths.data or ".", params.database or "prosody.sqlite");