migrator: Also migrate host/non-user archive data
authorKim Alvefur <zash@zash.se>
Sun, 09 Jan 2022 15:52:50 +0100
changeset 12169 79a51a48bdaf
parent 12168 85f03b29ec72
child 12170 39483b4099b4
migrator: Also migrate host/non-user archive data Needed for things like mod_http_file_share
tools/migration/prosody-migrator.lua
--- a/tools/migration/prosody-migrator.lua	Sun Jan 09 15:50:21 2022 +0100
+++ b/tools/migration/prosody-migrator.lua	Sun Jan 09 15:52:50 2022 +0100
@@ -202,9 +202,8 @@
 			local destination = assert(output_driver:open(store, typ));
 
 			local migrate = assert(migrate_once[typ], "Unknown store type: "..typ);
-			if typ == "keyval" then -- host data
-				migrate(origin, destination, nil);
-			end
+
+			migrate(origin, destination, nil); -- host data
 
 			for user in users(origin, host) do
 				migrate(origin, destination, user);