diff options
author | Matthew Wild <mwild1@gmail.com> | 2011-06-11 02:15:38 +0100 |
---|---|---|
committer | Matthew Wild <mwild1@gmail.com> | 2011-06-11 02:15:38 +0100 |
commit | 089b80680f8dc0e5d2249662c01012a819c94c23 (patch) | |
tree | 6eb9f603e79edeacda1dc5b9354be1dd7453a609 | |
parent | 7c6db5e1b2d8579501981b1010574f0363330d28 (diff) | |
download | prosody-089b80680f8dc0e5d2249662c01012a819c94c23.tar.gz prosody-089b80680f8dc0e5d2249662c01012a819c94c23.zip |
mod_storage_sql: Add sql_manage_tables to disable table creation/updating.
-rw-r--r-- | plugins/mod_storage_sql.lua | 3 |
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("`", "\""); |