Manual:MigrateImageCommentTemp.php

Details
migrateImageCommentTemp.php is a that merges   into the   table.

The  table is a temporary table creating a relation between each row of the   table and a row of the   table. It was created to avoid blocking on an alteration of the  table. On large wikis like Wikimedia Commons, altering the  table is a months-long process. The  table was created to avoid such an alteration, and will be merged back into the  table in the future.

The image_comment_temp table was introduced in. See also table.

In MediaWiki 1.32, the  table was merged into the   table with. After that, the  table is removed.

This script runs by default when you run.

Options/Arguments
This script does not take any options or arguments.

Common error
If you run this script directly, you will get this error as this script requires the  field in the   table, so the best way to run this script is to run through.
 * Run update.php to create img_description_id.

This error occurs when the  table does not exist, so no further action is necessary.
 * image_comment_temp does not exist, so nothing to do.

This error indicates that even after running the script, there are some orphaned rows. In this case, you can run the script again or check the orphaned rows manually.
 * Ignoring $count orphaned image_comment_temp row(s).