From 089b80680f8dc0e5d2249662c01012a819c94c23 Mon Sep 17 00:00:00 2001 From: Matthew Wild Date: Sat, 11 Jun 2011 02:15:38 +0100 Subject: mod_storage_sql: Add sql_manage_tables to disable table creation/updating. --- plugins/mod_storage_sql.lua | 3 +++ 1 file changed, 3 insertions(+) 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("`", "\""); -- cgit v1.2.3