[ticket/12183] Check if database columns were updated before changing them

PHPBB3-12183