# HG changeset patch # User Matthew Wild # Date 1307754938 -3600 # Node ID 5b0fcc5cdd4df20195b19a8af80b4ee622faa6f7 # Parent 51706d2b9f77b2071349b046628aaadc8826bfdf mod_storage_sql: Add sql_manage_tables to disable table creation/updating. diff -r 51706d2b9f77 -r 5b0fcc5cdd4d plugins/mod_storage_sql.lua --- a/plugins/mod_storage_sql.lua Tue Jun 07 01:29:02 2011 +0100 +++ b/plugins/mod_storage_sql.lua Sat Jun 11 02:15:38 2011 +0100 @@ -65,6 +65,9 @@ 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("`", "\"");