Hi guys,
Thank you for the very cool migration script. I have been using it for some time and to my horror I noticed the other day that my discussion forum (based on the DiscussionPlugin) was not working any more.
After some research and bugtracking (see #4324) we identified the bug: It was because the postgresql sequences need to have their starting-point properly set for a couple of new tables that the DiscussionPlugin created.
Is it possible that you incorporate a plugin-analyzer of sorts into the script? This way you could check to see if the plugins had created any sequences that was to be updated after the migration? If not, maybe you should put a little notice or similar on your website to warn people that they need to migrate the postgresql sequences manually after using the script?