[ticket/12012] Return SQL statements for index drop/create

Otherwise we recreate the index before changing the column

PHPBB3-12012