Skip to content

Commit

Permalink
fix #11 make sure to copy correct visits
Browse files Browse the repository at this point in the history
  • Loading branch information
tsteur committed Apr 14, 2019
1 parent 7bc3304 commit 34a2b51
Show file tree
Hide file tree
Showing 3 changed files with 5 additions and 2 deletions.
3 changes: 3 additions & 0 deletions CHANGELOG.md
Original file line number Diff line number Diff line change
@@ -1,5 +1,8 @@
## Changelog

### 3.0.5
- Fix an issue in copying visits

### 3.0.4
- Fix possible duplicate entry error while migrating archives

Expand Down
2 changes: 1 addition & 1 deletion Migrations/LogMigration.php
Original file line number Diff line number Diff line change
Expand Up @@ -70,7 +70,7 @@ private function migrateVisits($visitRows, Request $request, LogActionMigration
$visitorIdMap[$oldIdVisit] = $targetDb->insert('log_visit', $row);
}

$visitorIds = array_map('intval', array_values($visitorIdMap));
$visitorIds = array_map('intval', array_keys($visitorIdMap));
$visitorIds = implode(',', $visitorIds);

$batchQuery = new BatchQuery();
Expand Down
2 changes: 1 addition & 1 deletion plugin.json
Original file line number Diff line number Diff line change
@@ -1,7 +1,7 @@
{
"name": "Migration",
"description": "Migrate/copy any measurable (site, app, roll-up) from one Matomo to another Matomo",
"version": "3.0.4",
"version": "3.0.5",
"theme": false,
"require": {
"piwik": ">=3.7.0,<4.0.0-b1"
Expand Down

0 comments on commit 34a2b51

Please sign in to comment.