Fixing 'shared_survey' mysql error during migration from 1.6.x to 1.8.x  see BT#6738