/usr/share/php/data/Horde_Imap_Client/migration/1_horde_imap_client_base_tables.php is in php-horde-imap-client 2.29.12-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 27 28 29 30 31 32 33 34 35 36 37 38 39 40 41 42 43 44 45 46 47 48 49 50 51 52 53 54 55 56 57 58 59 60 61 62 63 64 65 66 67 68 69 70 71 72 73 74 75 76 77 78 79 80 81 82 83 84 85 86 87 88 89 90 91 92 93 94 95 96 97 98 99 | <?php
/**
* Copyright 2013-2016 Horde LLC (http://www.horde.org/)
*
* See the enclosed file COPYING for license information (LGPL). If you
* did not receive this file, see http://www.horde.org/licenses/lgpl21.
*
* @category Horde
* @copyright 2013-2016 Horde LLC
* @license http://www.horde.org/licenses/lgpl21 LGPL 2.1
* @package Imap_Client
*/
/**
* SQL schema for the Db IMAP/POP cache driver.
*
* @author Michael Slusarz <slusarz@horde.org>
* @category Horde
* @copyright 2013-2016 Horde LLC
* @ignore
* @license http://www.horde.org/licenses/lgpl21 LGPL 2.1
* @package Imap_Client
*/
class HordeImapClientBaseTables extends Horde_Db_Migration_Base
{
public function up()
{
if (in_array('horde_imap_client_data', $this->tables())) {
return;
}
$t = $this->createTable('horde_imap_client_data', array(
'autoincrementKey' => 'messageid'
));
$t->column('hostspec', 'string', array(
'limit' => 255,
'null' => false
));
$t->column('mailbox', 'string', array(
'limit' => 255,
'null' => false
));
$t->column('modified', 'bigint');
$t->column('port', 'integer', array(
'null' => false
));
$t->column('username', 'string', array(
'limit' => 255,
'null' => false
));
$t->end();
$this->addIndex(
'horde_imap_client_data',
array('hostspec', 'mailbox', 'port', 'username')
);
$t = $this->createTable('horde_imap_client_message', array(
'autoincrementKey' => false
));
$t->column('data', 'binary');
$t->column('msguid', 'string', array(
'null' => false
));
$t->column('messageid', 'bigint', array(
'null' => false
));
$t->end();
$this->addIndex(
'horde_imap_client_message',
array('msguid', 'messageid')
);
$t = $this->createTable('horde_imap_client_metadata', array(
'autoincrementKey' => false
));
$t->column('data', 'binary');
$t->column('field', 'string', array(
'null' => false
));
$t->column('messageid', 'bigint', array(
'null' => false
));
$t->end();
$this->addIndex(
'horde_imap_client_metadata',
array('messageid')
);
}
public function down()
{
$this->dropTable('horde_imap_client_data');
$this->dropTable('horde_imap_client_message');
$this->dropTable('horde_imap_client_metadata');
}
}
|