comparison tools/migration/migrator.cfg.lua @ 10411:db2a06b9ff98

Merge 0.11->trunk
author Kim Alvefur <zash@zash.se>
date Sat, 16 Nov 2019 16:52:31 +0100
parents 4d702f0c6273
children 33e856c65033
comparison
equal deleted inserted replaced
10410:659b577f280c 10411:db2a06b9ff98
1 local data_path = "../../data"; 1 local data_path = "../../data";
2 2
3 local vhost = {
4 "accounts",
5 "account_details",
6 "roster",
7 "vcard",
8 "private",
9 "blocklist",
10 "privacy",
11 "archive-archive",
12 "offline-archive",
13 "pubsub_nodes",
14 -- "pubsub_*-archive",
15 "pep",
16 -- "pep_*-archive",
17 }
18 local muc = {
19 "persistent",
20 "config",
21 "state",
22 "muc_log-archive",
23 };
24
3 input { 25 input {
4 type = "prosody_files"; 26 hosts = {
27 ["example.com"] = vhost;
28 ["conference.example.com"] = muc;
29 };
30 type = "internal";
5 path = data_path; 31 path = data_path;
6 } 32 }
7 33
8 output { 34 output {
9 type = "prosody_sql"; 35 type = "sql";
10 driver = "SQLite3"; 36 driver = "SQLite3";
11 database = data_path.."/prosody.sqlite"; 37 database = data_path.."/prosody.sqlite";
12 } 38 }
13 39
14 --[[ 40 --[[
15 41
16 input { 42 input {
17 type = "prosody_files"; 43 type = "internal";
18 path = data_path; 44 path = data_path;
19 } 45 }
20 output { 46 output {
21 type = "prosody_sql"; 47 type = "sql";
22 driver = "SQLite3"; 48 driver = "SQLite3";
23 database = data_path.."/prosody.sqlite"; 49 database = data_path.."/prosody.sqlite";
24 } 50 }
25 51
26 ]] 52 ]]