0010080: caldav client: update tasks
[tine20] / tine20 / Tasks / Setup / Update / Release8.php
1 <?php
2 /**
3  * Tine 2.0
4  *
5  * @package     Tasks
6  * @subpackage  Setup
7  * @license     http://www.gnu.org/licenses/agpl.html AGPL3
8  * @copyright   Copyright (c) 2014 Metaways Infosystems GmbH (http://www.metaways.de)
9  * @author      Philipp Schüle <p.schuele@metaways.de>
10  */
11 class Tasks_Setup_Update_Release8 extends Setup_Update_Abstract
12 {
13     /**
14      * update to 8.1
15      *
16      * - adds etag column
17      */
18     public function update_0()
19     {
20         $declaration = new Setup_Backend_Schema_Field_Xml('
21             <field>
22                 <name>etag</name>
23                 <type>text</type>
24                 <length>60</length>
25             </field>');
26         $this->_backend->addCol('tasks', $declaration);
27     
28         $declaration = new Setup_Backend_Schema_Index_Xml('
29             <index>
30                 <name>etag</name>
31                 <field>
32                     <name>etag</name>
33                 </field>
34             </index>');
35         $this->_backend->addIndex('cal_events', $declaration);
36     
37         $this->setTableVersion('tasks', 8);
38         $this->setApplicationVersion('Tasks', '8.1');
39     }
40 }