Copy visits from one siteid to another on same server

Hi,

I had a wrong siteid deployed on my homepage for a few days. I would like to copy those visits to the correct siteId, but I am not sure if I just can merge by executing:

update piwik_log_conversion set idsite = 4 where idsite = 7 where server_time > "2017-06-01"
update piwik_log_conversion_item set idsite = 4 where idsite = 7 where server_time > "2017-06-01"
update piwik_log_link_visit_action set idsite = 4 where idsite = 7 where server_time > "2017-06-01"
update piwik_log_visit set idsite = 4 where idsite = 7 where visit_first_action_time > “2017-06-01”

did I miss something? If I am right, I might end up with too many new visits for this month, but the rest should be ok - what do you think?

Hi, there is an open github issue:

And another feature request on the SiteMigration-Plugin

But as far as I know this isn’t easily possible.