/usr/share/php/data/Horde_History/migration/5_horde_history_remove_compositeindex.php is in php-horde-history 2.3.6-3ubuntu1.
This file is owned by root:root, with mode 0o644.
The actual contents of the file can be viewed below.
1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 | <?php
class HordeHistoryRemoveCompositeIndex extends Horde_Db_Migration_Base
{
public function up()
{
// Older installs may have indexes differently named.
$indexes = $this->indexes('horde_histories');
foreach ($indexes as $idx) {
if ($idx->columns == array('history_modseq') ||
$idx->columns == array('object_uid')) {
$this->removeIndex('horde_histories', array('name' => $idx->name));
}
}
}
public function down()
{
$this->addIndex('horde_histories', 'history_modseq');
$this->addIndex('horde_histories', 'object_uid');
}
}
|