Comparison

tools/migration/migrator.cfg.lua @ 10061:5c71693c8345

Merge 0.11->trunk
author Kim Alvefur <zash@zash.se>
date Mon, 08 Jul 2019 02:44:32 +0200
parent 10003:4d702f0c6273
child 12168:33e856c65033
comparison
equal deleted inserted replaced
10060:7a36b7ac309b 10061:5c71693c8345
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 ]]