I’m trying to run the Migration plugin to merge 2 Matomo instances into one.
I have 2 installations of Matomo, both at version: 4.3.1
When I run the command:
php /home/public/stats/matomo/console migration:measurable --source-idsite=3 --target-db-host=DATABASE --target-db-username=USER --target-db-password=PASSWORD --target-db-name="wpmu_stats" --target-db-prefix=matomo_ --dry-run
I get the following error:
The following columns are missing in the target DB table "matomo_log_visit": custom_var_k1, custom_var_v1, custom_var_k2, custom_var_v2, custom_var_k3, custom_var_v3, custom_var_k4, custom_var_v4, custom_var_k5, custom_var_v5
The following columns are missing in the target DB table "matomo_log_link_visit_action": custom_var_k1, custom_var_v1, custom_var_k2, custom_var_v2, custom_var_k3, custom_var_v3, custom_var_k4, custom_var_v4, custom_var_k5, custom_var_v5
The following columns are missing in the target DB table "matomo_log_conversion": custom_var_k1, custom_var_v1, custom_var_k2, custom_var_v2, custom_var_k3, custom_var_v3, custom_var_k4, custom_var_v4, custom_var_k5, custom_var_v5
ERROR [2021-06-09 19:32:58] 97014 Uncaught exception: /home/public/stats/matomo/plugins/Migration/Commands/Migrate.php(84): Please make sure both Matomo instances are on the same version
What am I doing wrong? I found a very similar error here, but I’m not sure how to solve the problem.
Any help would be greatly appreciated!