Fixing migration script. getTableFields is depreceated in 11.1 (Joomla 2.5) and removed in 12.1 (Joomla 3.0)