Software /
code /
prosody
Diff
plugins/mod_storage_sql.lua @ 13229:bb7177efbf41
plugins: Use boolean config method in some places
Because it makes sense and improves feedback via logging
author | Kim Alvefur <zash@zash.se> |
---|---|
date | Tue, 18 Jul 2023 12:38:16 +0200 |
parent | 13223:b88b3e414550 |
child | 13241:0419de4e4db1 |
line wrap: on
line diff
--- a/plugins/mod_storage_sql.lua Tue Jul 18 12:36:47 2023 +0200 +++ b/plugins/mod_storage_sql.lua Tue Jul 18 12:38:16 2023 +0200 @@ -908,7 +908,7 @@ if not engine then module:log("debug", "Creating new engine %s", db_uri); engine = sql:create_engine(params, function (engine) -- luacheck: ignore 431/engine - if module:get_option("sql_manage_tables", true) then + if module:get_option_boolean("sql_manage_tables", true) then -- Automatically create table, ignore failure (table probably already exists) -- FIXME: we should check in information_schema, etc. create_table(engine);