# HG changeset patch # User Kim Alvefur # Date 1701101956 -3600 # Node ID 47ede3d5183348f56b6efd206d4d4869dde40e14 # Parent 5fe8a8e16b27ce73d2e5100c2f658d0c74758105 migrator: Add an escape hatch to allow arbitrary config options Previously only SQL settings and the 'path' for internal storage could be set, and only for SQL and internal storage. input { type = "whatever"; config = { whatever_foobar = "something" } } diff -r 5fe8a8e16b27 -r 47ede3d51833 tools/migration/prosody-migrator.lua --- a/tools/migration/prosody-migrator.lua Mon Nov 27 08:19:52 2023 +0100 +++ b/tools/migration/prosody-migrator.lua Mon Nov 27 17:19:16 2023 +0100 @@ -168,6 +168,11 @@ elseif conf.type == "sql" then cm.set(host, "sql", conf); end + if type(conf.config) == "table" then + for option, value in pairs(conf.config) do + cm.set(host, option, value); + end + end end local function get_driver(host, conf)