tools/migration/migrator.cfg.lua
author Kim Alvefur <zash@zash.se>
Sun, 09 Oct 2022 15:24:30 +0200
branch0.12
changeset 12762 7929c0ffbe14
parent 12172 33e856c65033
child 13299 b788307ca06a
permissions -rw-r--r--
util.jsonschema: Ignore test case for JavaScript specific detail Also touching on how arrays are indistinguishable from tables in Lua

local data_path = "../../data";

local vhost = {
	"accounts",
	"account_details",
	"roster",
	"vcard",
	"private",
	"blocklist",
	"privacy",
	"archive-archive",
	"offline-archive",
	"pubsub_nodes-pubsub",
	"pep-pubsub",
}
local muc = {
	"persistent",
	"config",
	"state",
	"muc_log-archive",
};

input {
	hosts = {
		["example.com"] = vhost;
		["conference.example.com"] = muc;
	};
	type = "internal";
	path = data_path;
}

output {
	type = "sql";
	driver = "SQLite3";
	database = data_path.."/prosody.sqlite";
}

--[[

input {
	type = "internal";
	path = data_path;
}
output {
	type = "sql";
	driver = "SQLite3";
	database = data_path.."/prosody.sqlite";
}

]]