Browse files

need to migrate version first

also fix a bug on calling migrateWatchers.
  • Loading branch information...
1 parent 2224502 commit 533a978b7d6930bde3409bc01e91e57bb3e6006d @ludaohong ludaohong committed Sep 16, 2012
Showing with 2 additions and 2 deletions.
  1. +2 −2 migrator.php
View
4 migrator.php
@@ -607,18 +607,18 @@ function migrateProject($idProjectOld)
$idProjectNew = $this->dbNew->insert('projects', $projectOld);
$this->projectsMapping[$idProjectOld] = $idProjectNew;
echo "migrating old redmine $idProjectOld => to new redmine $idProjectNew\n";
+ $this->migrateVersions($idProjectOld);
$this->migrateCategories($idProjectOld);
$this->migrateIssues($idProjectOld);
$this->migrateNews($idProjectOld);
- $this->migrateVersions($idProjectOld);
$this->migrateDocuments($idProjectOld);
$this->migrateBoards($idProjectOld);
$this->migrateTimeEntries($idProjectOld);
$this->migrateModules($idProjectOld);
$this->migrateWikis($idProjectOld);
$this->migrateAttachments($idProjectOld);
- $this->migrateWatchers($idIssueOld);
+ $this->migrateWatchers($idProjectOld);
}
echo 'projects: ' . count($this->projectsMapping) . " <br>\n";

0 comments on commit 533a978

Please sign in to comment.