aboutsummaryrefslogtreecommitdiffstats
path: root/plugins
diff options
context:
space:
mode:
authorMatthew Wild <mwild1@gmail.com>2011-06-11 02:15:38 +0100
committerMatthew Wild <mwild1@gmail.com>2011-06-11 02:15:38 +0100
commit089b80680f8dc0e5d2249662c01012a819c94c23 (patch)
tree6eb9f603e79edeacda1dc5b9354be1dd7453a609 /plugins
parent7c6db5e1b2d8579501981b1010574f0363330d28 (diff)
downloadprosody-089b80680f8dc0e5d2249662c01012a819c94c23.tar.gz
prosody-089b80680f8dc0e5d2249662c01012a819c94c23.zip
mod_storage_sql: Add sql_manage_tables to disable table creation/updating.
Diffstat (limited to 'plugins')
-rw-r--r--plugins/mod_storage_sql.lua3
1 files changed, 3 insertions, 0 deletions
diff --git a/plugins/mod_storage_sql.lua b/plugins/mod_storage_sql.lua
index 055d6599..59583def 100644
--- a/plugins/mod_storage_sql.lua
+++ b/plugins/mod_storage_sql.lua
@@ -65,6 +65,9 @@ local function connect()
end
local function create_table()
+ if not module:get_option("sql_manage_tables", true) then
+ return;
+ end
local create_sql = "CREATE TABLE `prosody` (`host` TEXT, `user` TEXT, `store` TEXT, `key` TEXT, `type` TEXT, `value` TEXT);";
if params.driver == "PostgreSQL" then
create_sql = create_sql:gsub("`", "\"");