/usr/share/php/data/Horde_Vfs/migration/1_horde_vfs_base_tables.php is in php-horde-vfs 2.4.0-1ubuntu1.
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 27 28 29 30 31 32 33 34 35 36 37 38 39 40 41 42 43 44 45 | <?php
class HordeVfsBaseTables extends Horde_Db_Migration_Base
{
public function up()
{
if (!in_array('horde_vfs', $this->tables())) {
$t = $this->createTable('horde_vfs', array('autoincrementKey' => array('vfs_id')));
$t->column('vfs_id', 'int', array('null' => false, 'unsigned' => true));
$t->column('vfs_type', 'smallint', array('null' => false, 'unsigned' => true));
$t->column('vfs_path', 'string', array('limit' => 255, 'null' => false));
$t->column('vfs_name', 'string', array('limit' => 255, 'null' => false));
$t->column('vfs_modified', 'bigint', array('null' => false));
$t->column('vfs_owner', 'string', array('limit' => 255, 'null' => false));
$t->column('vfs_data', 'binary');
$t->end();
$this->addIndex('horde_vfs', array('vfs_path'));
$this->addIndex('horde_vfs', array('vfs_name'));
}
if (!in_array('horde_muvfs', $this->tables())) {
$t = $this->createTable('horde_muvfs', array('autoincrementKey' => array('vfs_id')));
$t->column('vfs_id', 'int', array('null' => false, 'unsigned' => true));
$t->column('vfs_type', 'smallint', array('null' => false, 'unsigned' => true));
$t->column('vfs_path', 'string', array('limit' => 255, 'null' => false));
$t->column('vfs_name', 'string', array('limit' => 255, 'null' => false));
$t->column('vfs_modified', 'bigint', array('null' => false));
$t->column('vfs_owner', 'string', array('limit' => 255, 'null' => false));
$t->column('vfs_perms', 'smallint', array('null' => false, 'unsigned' => true));
$t->column('vfs_data', 'binary');
$t->end();
$this->addIndex('horde_muvfs', array('vfs_path'));
$this->addIndex('horde_muvfs', array('vfs_name'));
}
}
public function down()
{
try {
$this->dropTable('horde_muvfs');
} catch (Horde_Exception $e) {}
try {
$this->dropTable('horde_vfs');
} catch (Horde_Exception $e) {}
}
}
|