Refs #3929 Forum; Fixes to migration script

git-svn-id: https://svn.eionet.europa.eu/repositories/Naaya/trunk/eggs/naaya.content.bfile@21162 a0171fae-0946-0410-966d-b1775066cd26