Software /
code /
prosody
Comparison
plugins/mod_storage_sql.lua @ 10656:ffa9a20aca8b
Merge 0.11->trunk
author | Kim Alvefur <zash@zash.se> |
---|---|
date | Sat, 22 Feb 2020 16:26:20 +0100 |
parent | 10653:94f6fb21a764 |
parent | 10655:ee6c12264420 |
child | 10677:0054aec3e8c5 |
comparison
equal
deleted
inserted
replaced
10654:a2bd6e85a457 | 10656:ffa9a20aca8b |
---|---|
726 if upgrade_table(engine, params, false) then | 726 if upgrade_table(engine, params, false) then |
727 module:log("error", "Old database format detected. Please run: prosodyctl mod_%s upgrade", module.name); | 727 module:log("error", "Old database format detected. Please run: prosodyctl mod_%s upgrade", module.name); |
728 return false, "database upgrade needed"; | 728 return false, "database upgrade needed"; |
729 end | 729 end |
730 end | 730 end |
731 if engine.params.driver == "SQLite3" then | |
732 for row in engine:select("PRAGMA compile_options") do | |
733 if row[1] == "ENABLE_UPDATE_DELETE_LIMIT" then | |
734 engine._have_delete_limit = true; | |
735 end | |
736 end | |
737 end | |
731 end); | 738 end); |
732 if engine.params.driver == "SQLite3" then | |
733 for row in engine:select("PRAGMA compile_options") do | |
734 if row[1] == "ENABLE_UPDATE_DELETE_LIMIT" then | |
735 engine._have_delete_limit = true; | |
736 end | |
737 end | |
738 end | |
739 engines[sql.db2uri(params)] = engine; | 739 engines[sql.db2uri(params)] = engine; |
740 end | 740 end |
741 | 741 |
742 module:provides("storage", driver); | 742 module:provides("storage", driver); |
743 end | 743 end |