Changeset 5804 for trunk/expressoCalendar/setup
- Timestamp:
- 03/23/12 16:39:10 (12 years ago)
- Location:
- trunk/expressoCalendar/setup
- Files:
-
- 3 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/expressoCalendar/setup/default_records.inc.php
r5715 r5804 31 31 $oProc->query("ALTER TABLE calendar_signature ADD CONSTRAINT fk_calendar_signature_calendar_espec FOREIGN KEY (calendar_id) REFERENCES calendar (id) MATCH SIMPLE ON UPDATE CASCADE ON DELETE CASCADE;"); 32 32 33 //calendar_signature_alarm33 //calendar_signature_alarm 34 34 $oProc->query("ALTER TABLE calendar_signature_alarm ADD CONSTRAINT fk_calendar_signature_alarm_calendar_signature FOREIGN KEY (calendar_signature_id) REFERENCES calendar_signature (id) MATCH SIMPLE ON UPDATE CASCADE ON DELETE CASCADE;"); 35 35 … … 41 41 $oProc->query("INSERT INTO calendar_class( \"id\", \"name\") VALUES ('1','Public'),('2','Private'),('3','Confidential');"); 42 42 $oProc->query("INSERT INTO calendar_participant_status( \"id\", \"name\") VALUES ('1','CONFIRMED'),('2','TENTATIVE'),('3','CANCELLED'),('4','UNANSWERED'),('5', 'DELEGATED');"); 43 43 44 //Admin conf 45 $oProc->query("INSERT INTO phpgw_hooks( \"hook_appname\", \"hook_location\", \"hook_filename\") VALUES ('expressoCalendar','admin', 'hook_admin.inc.php');"); 44 46 ?> -
trunk/expressoCalendar/setup/setup.inc.php
r5741 r5804 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 3';15 $setup_info['expressoCalendar']['version'] = '1.004'; 16 16 $setup_info['expressoCalendar']['app_order'] = 10; 17 17 -
trunk/expressoCalendar/setup/tables_update.inc.php
r5746 r5804 74 74 $GLOBALS['setup_info']['expressoCalendar']['currentver'] = '1.002'; 75 75 return $GLOBALS['setup_info']['expressoCalendar']['currentver']; 76 } 76 }; 77 77 78 78 $test[] = '1.002'; … … 85 85 $GLOBALS['setup_info']['expressoCalendar']['currentver'] = '1.003'; 86 86 return $GLOBALS['setup_info']['expressoCalendar']['currentver']; 87 } 87 }; 88 89 $test[] = '1.003'; 90 function expressoCalendar_upgrade1_003() { 91 92 $oProc = $GLOBALS['phpgw_setup']->oProc; 93 94 $oProc->query("INSERT INTO phpgw_hooks( \"hook_appname\", \"hook_location\", \"hook_filename\") VALUES ('expressoCalendar','admin', 'hook_admin.inc.php')"); 95 96 $GLOBALS['setup_info']['expressoCalendar']['currentver'] = '1.004'; 97 return $GLOBALS['setup_info']['expressoCalendar']['currentver']; 98 }; 99 100 101 88 102 ?>
Note: See TracChangeset
for help on using the changeset viewer.