/usr/share/php/data/Horde_History/migration/1_horde_history_base_tables.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 | <?php
class HordeHistoryBaseTables extends Horde_Db_Migration_Base
{
public function up()
{
if (!in_array('horde_histories', $this->tables())) {
$t = $this->createTable('horde_histories', array('autoincrementKey' => array('history_id')));
$t->column('history_id', 'integer', array('null' => false, 'unsigned' => true));
$t->column('object_uid', 'string', array('limit' => 255, 'null' => false));
$t->column('history_action', 'string', array('limit' => 32, 'null' => false));
$t->column('history_ts', 'bigint', array('null' => false));
$t->column('history_desc', 'text');
$t->column('history_who', 'string', array('limit' => 255));
$t->column('history_extra', 'text');
$t->end();
$this->addIndex('horde_histories', array('history_action'));
$this->addIndex('horde_histories', array('history_ts'));
$this->addIndex('horde_histories', array('object_uid'));
}
}
public function down()
{
$this->dropTable('horde_histories');
}
}
|