Migrate image descriptions from image_comment_temp
authorBrad Jorsch <bjorsch@wikimedia.org>
Wed, 7 Mar 2018 16:40:56 +0000 (11:40 -0500)
committerBrad Jorsch <bjorsch@wikimedia.org>
Tue, 2 Oct 2018 14:30:00 +0000 (10:30 -0400)
commit7a422138a791565d9bf8431991b2b0a18d99ba66
tree16a8fc2ab1479b1fd33d280268cfb82bb5a7f2bd
parent95bbac065507e69b1cbfbdd38b0a3b55eadc1a4c
Migrate image descriptions from image_comment_temp

image_comment_temp was always intended to be temporary, until an
expensive schema change on Wikimedia Commons's image table could be
done. Now that that has been done, stop writing image_comment_temp and
add a migration script to copy existing data into img_description_id.

Ic8efeddc will remove the reads from image_comment_temp and drop the
image_comment_temp table.

Bug: T188132
Change-Id: Iab5f521577a415b2dc213b517ee8a0dca4fdd0aa
13 files changed:
RELEASE-NOTES-1.32
autoload.php
includes/CommentStore.php
includes/filerepo/file/LocalFile.php
includes/installer/DatabaseUpdater.php
includes/installer/MssqlUpdater.php
includes/installer/MysqlUpdater.php
includes/installer/OracleUpdater.php
includes/installer/PostgresUpdater.php
includes/installer/SqliteUpdater.php
maintenance/migrateComments.php
maintenance/migrateImageCommentTemp.php [new file with mode: 0644]
tests/phpunit/includes/CommentStoreTest.php