/usr/share/php/data/Horde_Perms/migration/1_horde_perms_base_tables.php is in php-horde-perms 2.1.7-2.
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 | <?php
class HordePermsBaseTables extends Horde_Db_Migration_Base
{
public function up()
{
if (!in_array('horde_perms', $this->tables())) {
$t = $this->createTable('horde_perms', array('autoincrementKey' => array('perm_id')));
$t->column('perm_id', 'integer', array('null' => false));
$t->column('perm_name', 'string', array('limit' => 255, 'null' => false));
$t->column('perm_parents', 'string', array('limit' => 255, 'null' => false));
$t->column('perm_data', 'text');
$t->end();
$this->addIndex('horde_perms', array('perm_name'), array('unique' => true));
}
}
public function down()
{
$this->dropTable('horde_perms');
}
}
|