⚝
One Hat Cyber Team
⚝
Your IP:
216.73.216.50
Server IP:
41.128.143.86
Server:
Linux host.raqmix.cloud 6.8.0-1025-azure #30~22.04.1-Ubuntu SMP Wed Mar 12 15:28:20 UTC 2025 x86_64
Server Software:
Apache
PHP Version:
8.3.23
Buat File
|
Buat Folder
Eksekusi
Dir :
~
/
usr
/
share
/
psa-horde
/
kronolith
/
migration
/
View File Name :
6_kronolith_upgrade_addresources.php
* @category Horde * @license http://www.horde.org/licenses/gpl GPL * @package Kronolith */ class KronolithUpgradeAddResources extends Horde_Db_Migration_Base { /** * Upgrade. */ public function up() { $tableList = $this->tables(); if (!in_array('kronolith_resources', $tableList)) { $t = $this->createTable('kronolith_resources', array('autoincrementKey' => false)); $t->column('resource_id', 'integer', array('null' => false)); $t->column('resource_name', 'string', array('limit' => 255)); $t->column('resource_calendar', 'string', array('limit' => 255)); $t->column('resource_description', 'text'); $t->column('resource_response_type', 'integer', array('default' => 0)); $t->column('resource_type', 'string', array('limit' => 255, 'null' => false)); $t->column('resource_members', 'text'); $t->primaryKey(array('resource_id')); $t->end(); $this->addIndex('kronolith_resources', array('resource_calendar')); $this->addIndex('kronolith_resources', array('resource_type')); } } /** * Downgrade */ public function down() { $this->dropTable('kronolith_resources'); } }