Changeset 6111 for trunk/expressoCalendar
- Timestamp:
- 05/04/12 18:38:56 (12 years ago)
- Location:
- trunk/expressoCalendar/setup
- Files:
-
- 3 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/expressoCalendar/setup/setup.inc.php
r5953 r6111 13 13 $setup_info['expressoCalendar']['title'] = 'Expresso Calendar'; 14 14 /* Ao incrementar versão, não esquecer de declarar função do tables_update.inc.php*/ 15 $setup_info['expressoCalendar']['version'] = '1.00 5';15 $setup_info['expressoCalendar']['version'] = '1.006'; 16 16 $setup_info['expressoCalendar']['app_order'] = 10; 17 17 -
trunk/expressoCalendar/setup/tables_current.inc.php
r5994 r6111 152 152 'id' => array( 'type' => 'auto', 'nullable' => False), 153 153 'action_id' => array( 'type' => 'int', 'precision' => '8', 'nullable' => False), 154 'range_end' => array( 'type' => 'bigint', 'precision' => '16', 'nullable' => True), 155 'range_start' => array( 'type' => 'bigint', 'precision' => '16', 'nullable' => True), 156 'unit' => array('type' => 'varchar','precision' => '20','nullable' => True), 154 'alarm_offset' => array( 'type' => 'bigint', 'precision' => '16', 'nullable' => False), 157 155 'time' => array('type' => 'varchar','precision' => '50','nullable' => True), 158 156 'participant_id' => array('type' => 'int', 'precision' => '8','nullable' => True), -
trunk/expressoCalendar/setup/tables_update.inc.php
r5994 r6111 107 107 }; 108 108 109 109 $test[] = '1.005'; 110 function expressoCalendar_upgrade1_005() { 111 $oProc = $GLOBALS['phpgw_setup']->oProc; 112 $oProc->query("ALTER TABLE calendar_alarm ADD COLUMN alarm_offset bigint;"); 113 $oProc->query("UPDATE calendar_alarm SET alarm_offset = obj.range_start - calendar_alarm.range_start FROM calendar_object as obj WHERE obj.id = object_id;"); 114 $oProc->query("ALTER TABLE calendar_alarm DROP COLUMN range_start;"); 115 $oProc->query("ALTER TABLE calendar_alarm DROP COLUMN range_end;"); 116 $GLOBALS['setup_info']['expressoCalendar']['currentver'] = '1.006'; 117 return $GLOBALS['setup_info']['expressoCalendar']['currentver']; 118 }; 110 119 111 120 ?>
Note: See TracChangeset
for help on using the changeset viewer.