[ticket/11413] Replace item_type with notification_type_id in foreign tables.

PHPBB3-11413