[ticket/12475] Undefined variable $log in db:migrate console command

https://tracker.phpbb.com/browse/PHPBB3-12475

PHPBB3-12475