3
* Add individual alarm methods for tasks.
5
* Copyright 2010-2013 Horde LLC (http://www.horde.org/)
7
* See the enclosed file COPYING for license information (GPL). If you
8
* did not receive this file, see http://www.horde.org/licenses/gpl.
10
* @author Michael J. Rubinsky <mrubinsk@horde.org>
12
* @license http://www.horde.org/licenses/gpl GPL
15
class NagUpgradeAddAlarmMethods extends Horde_Db_Migration_Base
22
$t = $this->_connection->table('nag_tasks');
23
$cols = $t->getColumns();
24
if (!in_array('task_alarm_methods', array_keys($cols))) {
25
$this->addColumn('nag_tasks', 'task_alarm_methods', 'text');
32
public function down()
34
$this->removeColumn('nag_tasks', 'task_alarm_methods');
b'\\ No newline at end of file'