system_update_6004

Versions
6
system_update_6004()

This update used to add an index on users created column (#127941). However, system_update_1022() does the same thing. This update tried to detect if 1022 had already run but failed to do so, resulting in an "index already exists" error.

Adding the index here is never necessary. Sites installed before 1022 will run 1022, getting the update. Sites installed on/after 1022 got the index when the table was first created. Therefore, this function is now a no-op.

Related topics

Code

modules/system/system.install, line 1205

<?php
function system_update_6004() {
  return array();
}
?>
Login or register to post comments
 
 

All source code and documentation on this site is released under the terms of the GNU General Public License, version 2 and later. Drupal is a registered trademark of Dries Buytaert.