The error message suggests that there is a missing index for the foreign key constraint 'account_payment_payment_type_foreign' in the referenced table 'item_master'. To fix this, you need to make sure that the referenced column in the 'item_master' table has an index.
You can add an index to the column by running the following SQL command:
ALTER TABLE item_master ADD INDEX index_name (column_name);
Replace 'index_name' with a name for the index and 'column_name' with the name of the column that is being referenced in the foreign key constraint.
Once the index has been added, try running the migration again.