The Voting API module does not have migration support. There is support in Migrate Extras but it doesn't work properly in my tests. Specifically, it doesn't correctly fill the mapping table which makes rollbacks and updates impossible.

This could be fixed in Migrate Extras but that module is abandoned in favour of implementing migrations in the modules itself. Hence, I am trying here. I have used a different class name so that there are no clashes if someone already uses migrate_extras.

Support from Acquia helps fund testing for Drupal Acquia logo

Comments

hussainweb created an issue. See original summary.

hussainweb’s picture

Status: Active » Needs review
FileSize
5.53 KB

Attached the patch. I am testing it on my project and it works great (even with migrate_extras installed).

hussainweb’s picture

Here are some performance improvements. Mainly to optimize for the memory usage and fixing a bug that would result in a lot more recalculations than necessary.

  • pifagor committed 882eb97 on 7.x-3.x
    Issue #2697163 by hussainweb, pifagor: Add migration support. Issue #...
pifagor’s picture

Version: 7.x-2.x-dev » 7.x-3.x-dev
Status: Needs review » Fixed

  • pifagor committed c83fd27 on 7.x-2.x
    Issue #2697163 by hussainweb, pifagor: Add migration support. Issue #...

Status: Fixed » Closed (fixed)

Automatically closed - issue fixed for 2 weeks with no activity.