[feature/migrations] Fix returns on data

PHPBB3-9737