/usr/share/php/data/Horde_Prefs/migration/1_horde_prefs_base_tables.php is in php-horde-prefs 2.5.2-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 | <?php
class HordePrefsBaseTables extends Horde_Db_Migration_Base
{
public function up()
{
if (!in_array('horde_prefs', $this->tables())) {
$t = $this->createTable('horde_prefs', array('autoincrementKey' => array('pref_uid', 'pref_scope', 'pref_name')));
$t->column('pref_uid', 'string', array('limit' => 255, 'null' => false));
$t->column('pref_scope', 'string', array('limit' => 16, 'null' => false, 'default' => ''));
$t->column('pref_name', 'string', array('limit' => 32, 'null' => false));
$t->column('pref_value', 'text');
$t->end();
$this->addIndex('horde_prefs', array('pref_uid'));
$this->addIndex('horde_prefs', array('pref_scope'));
}
}
public function down()
{
$this->dropTable('horde_prefs');
}
}
|