Changeset 361
- Timestamp:
- 07/21/08 11:02:24 (16 years ago)
- Location:
- trunk/calendar/setup
- Files:
-
- 2 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/calendar/setup/setup.inc.php
r204 r361 12 12 13 13 $setup_info['calendar']['name'] = 'calendar'; 14 $setup_info['calendar']['version'] = '0.9.2 2';14 $setup_info['calendar']['version'] = '0.9.23'; 15 15 $setup_info['calendar']['app_order'] = 3; 16 16 $setup_info['calendar']['enable'] = 1; -
trunk/calendar/setup/tables_update.inc.php
r204 r361 9 9 * option) any later version. * 10 10 \**************************************************************************/ 11 function addSpecialColumn($table,$column, $attrs){ 12 $result = $GLOBALS['phpgw_setup']->db->metadata($table); 13 if($result){ 14 foreach($result as $idx => $col){ 15 if($col['name'] == $column) 16 return; 17 } 18 } 19 $GLOBALS['phpgw_setup']->db->query("ALTER TABLE ".$table." ADD COLUMN ".$column." ".$attrs); 20 } 11 21 $test[] = '0.9.2'; 12 22 function calendar_upgrade0_9_2() … … 30 40 function calendar_upgrade0_9_21() 31 41 { 32 /* 33 $GLOBALS['phpgw_setup']->oProc->AddColumn('phpgw_cal','last_status',array( 34 'type' => 'char', 35 'precision' => '1', 36 'default' => 'N::bpchar')); 37 $GLOBALS['phpgw_setup']->oProc->AddColumn('phpgw_cal','last_update',array( 38 'type' => 'int8', 39 'precision' => '8', 40 'default' => '(date_part(\'epoch\'::text, (\'now\'::text)::timestamp(3) with time zone) * (1000)::double precision)')); 41 */ 42 $GLOBALS['phpgw_setup']->db->query("ALTER TABLE phpgw_cal ADD COLUMN last_status char(1) DEFAULT 'N'::bpchar"); 43 $GLOBALS['phpgw_setup']->db->query("ALTER TABLE phpgw_cal ADD COLUMN last_update int8 DEFAULT (date_part('epoch'::text, ('now'::text)::timestamp(3) with time zone) * (1000)::double precision)"); 44 42 addSpecialColumn("phpgw_cal","last_status","char(1) DEFAULT 'N'::bpchar"); 43 addSpecialColumn("phpgw_cal","last_update","int8 DEFAULT (date_part('epoch'::text, ('now'::text)::timestamp(3) with time zone) * (1000)::double precision)"); 45 44 $GLOBALS['setup_info']['calendar']['currentver'] = '0.9.22'; 45 return $GLOBALS['setup_info']['calendar']['currentver']; 46 } 47 $test[] = '0.9.22'; 48 function calendar_upgrade0_9_22() 49 { 50 $GLOBALS['setup_info']['calendar']['currentver'] = '0.9.23'; 46 51 return $GLOBALS['setup_info']['calendar']['currentver']; 47 52 }
Note: See TracChangeset
for help on using the changeset viewer.