This file is indexed.

/usr/share/php/data/Horde_History/migration/6_horde_history_fix_botchedindexes.php is in php-horde-history 2.2.1-1.

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
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
<?php
class HordeHistoryFixBotchedIndexes extends Horde_Db_Migration_Base
{
    public function up()
    {
        $indexes = $this->indexes('horde_histories');
        $idx = $this->indexName('horde_histories', array('column' => array('history_modseq', 'object_uid')));
        foreach ($indexes as $index) {
            if ($index->name == $idx) {
                $this->removeIndex('horde_histories', array('name' => $idx));
            }
        }

        // Re-add these.
        $this->addIndex('horde_histories', array('history_modseq'));
        $this->addIndex('horde_histories', array('object_uid'));

    }

    public function down()
    {
        $this->addIndex('horde_histories', array('history_modseq', 'object_uid'));
        // Older installs may have indexes differently named.
        $indexes = $this->indexes('horde_histories');
        $modseq_idx_name = $this->indexName('horde_histories', 'history_modseq');
        $object_idx_name = $this->indexName('horde_histories', 'object_uid');
        foreach ($indexes as $idx) {
            switch ($idx->name) {
            case $modseq_idx_name:
            case $object_idx_name:
                $this->removeIndex('horde_histories', array('name' => $idx->name));
                break;
            }
        }
    }

}