This file is indexed.

/usr/share/php/data/Horde_History/migration/4_horde_history_add_compositeindex.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
<?php
class HordeHistoryAddCompositeIndex extends Horde_Db_Migration_Base
{
    public function up()
    {
        $this->addIndex('horde_histories', array('history_modseq', 'object_uid'));
    }

    public function down()
    {
        // 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;
            }
        }
    }

}