/usr/share/php/data/Horde_History/migration/2_horde_history_upgrade_autoincrement.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 | <?php
class HordeHistoryUpgradeAutoIncrement extends Horde_Db_Migration_Base
{
public function up()
{
$this->changeColumn('horde_histories', 'history_id', 'autoincrementKey');
try {
$this->dropTable('horde_histories_seq');
} catch (Horde_Db_Exception $e) {
}
}
public function down()
{
$this->changeColumn('horde_histories', 'history_id', 'integer', array('null' => false, 'unsigned' => true));
}
}
|