[ticket/12432] Migrator should not revert custom functions

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