* T154872).
*/
$lbFactory->setIndexAliases( [
- 'ar_usertext_timestamp' => 'usertext_timestamp',
'un_user_id' => 'user_id',
'un_user_ip' => 'user_ip',
] );
[ 'modifyTable', 'job', 'patch-job-params-mediumblob.sql' ],
// 1.34
+ [ 'dropIndex', 'archive', 'ar_usertext_timestamp',
+ 'patch-drop-archive-ar_usertext_timestamp.sql' ],
+ [ 'dropIndex', 'archive', 'usertext_timestamp', 'patch-drop-archive-usertext_timestamp.sql' ],
[ 'dropField', 'logging', 'log_user', 'patch-drop-user-fields.sql' ],
];
}
--- /dev/null
+-- T233221: The index on `archive` variously known as `ar_usertext_timestamp`
+-- and `usertext_timestamp` has a long and sordid history. We're dropping the
+-- `ar_user_text` column entirely now (see patch-drop-user-fields.sql), but
+-- this index needs special care thanks to said history.
+
+-- Do not use the /*i*/ thing here!
+DROP INDEX ar_usertext_timestamp ON /*_*/archive;
--- /dev/null
+-- T233221: The index on `archive` variously known as `ar_usertext_timestamp`
+-- and `usertext_timestamp` has a long and sordid history. We're dropping the
+-- `ar_user_text` column entirely now (see patch-drop-user-fields.sql), but
+-- this index needs special care thanks to said history.
+
+-- Do not use the /*i*/ thing here!
+DROP INDEX usertext_timestamp ON /*_*/archive;
-- T188327. Drop old xx_user and xx_user_text fields, and defaults from xx_actor fields.
ALTER TABLE /*_*/archive
- DROP INDEX /*i*/ar_usertext_timestamp,
DROP COLUMN ar_user,
DROP COLUMN ar_user_text,
ALTER COLUMN ar_actor DROP DEFAULT;