public function migrate(stdClass $data, $targetVersion)
    {
        $sourceVersion = $this->versioner->parseVersion($data);

        if (version_compare($targetVersion, $sourceVersion, '>')) {
            $this->up($data, $sourceVersion, $targetVersion);
        } elseif (version_compare($targetVersion, $sourceVersion, '<')) {
            $this->down($data, $sourceVersion, $targetVersion);
        }
    }