Changeset 7579 for trunk/expressoCalendar
- Timestamp:
- 11/29/12 17:12:33 (11 years ago)
- Location:
- trunk/expressoCalendar/setup
- Files:
-
- 3 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/expressoCalendar/setup/setup.inc.php
r7164 r7579 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.0 09';15 $setup_info['expressoCalendar']['version'] = '1.011'; 16 16 $setup_info['expressoCalendar']['app_order'] = 10; 17 17 -
trunk/expressoCalendar/setup/tables_current.inc.php
r7378 r7579 248 248 'frequency' => array( 'type' => 'varchar','precision' => '20', 'nullable' => False), 249 249 'until' => array( 'type' => 'int', 'precision' => '8', 'nullable' => True), 250 'dtstart' => array( 'type' => 'bigint','precision' => '16', 'nullable' => True),250 'dtstart' => array( 'type' => 'bigint','precision' => '16', 'nullable' => True), 251 251 'count' => array( 'type' => 'int', 'precision' => '8', 'nullable' => True), 252 252 'object_id' => array( 'type' => 'int', 'precision' => '8', 'nullable' => False), … … 261 261 'bysetpos' => array( 'type' => 'varchar','precision' => '50', 'nullable' => True), 262 262 'wkst' => array( 'type' => 'varchar','precision' => '50', 'nullable' => True), 263 'exceptions' => array( 'type' => 'varchar','precision' => '50', 'nullable' => True),263 'exceptions' => array( 'type' => 'varchar','precision' => '50', 'nullable' => True), 264 264 'interval' => array( 'type' => 'int', 'precision' => '8', 'nullable' => True) 265 265 ), … … 334 334 'uc' => array() 335 335 ), 336 337 338 'calendar_timezones' => array( 339 'fd' => array( 340 'id' => array( 'type' => 'auto', 'nullable' => False), 341 'timezone' => array( 'type' => 'varchar','precision' => '150', 'nullable' => False), 342 343 'standard_frequency' => array( 'type' => 'varchar','precision' => '20', 'nullable' => False), 344 'standard_dtstart' => array( 'type' => 'varchar','precision' => '20', 'nullable' => True), 345 'standard_byday' => array( 'type' => 'varchar','precision' => '50', 'nullable' => True), 346 'standard_bymonth' => array( 'type' => 'varchar','precision' => '50', 'nullable' => True), 347 'standard_from' => array( 'type' => 'varchar','precision' => '10', 'nullable' => True), 348 'standard_to' => array( 'type' => 'varchar','precision' => '10', 'nullable' => True), 349 350 'daylight_frequency' => array( 'type' => 'varchar','precision' => '20', 'nullable' => False), 351 'daylight_dtstart' => array( 'type' => 'varchar','precision' => '20', 'nullable' => True), 352 'daylight_byday' => array( 'type' => 'varchar','precision' => '50', 'nullable' => True), 353 'daylight_bymonth' => array( 'type' => 'varchar','precision' => '50', 'nullable' => True), 354 'daylight_from' => array( 'type' => 'varchar','precision' => '10', 'nullable' => True), 355 'daylight_to' => array( 'type' => 'varchar','precision' => '10', 'nullable' => True), 356 357 'dtstamp' => array( 'type' => 'bigint', 'precision' => '16', 'precision' => '16', 'nullable' => False) 358 ), 359 'pk' => array('id'), 360 'fk' => array(), 361 'ix' => array(), 362 'uc' => array() 363 ), 336 364 337 365 ); -
trunk/expressoCalendar/setup/tables_update.inc.php
r7378 r7579 191 191 return $GLOBALS['setup_info']['expressoCalendar']['currentver']; 192 192 }; 193 194 195 $test[] = '1.010'; 196 function expressoCalendar_upgrade1_010() { 197 $oProc = $GLOBALS['phpgw_setup']->oProc; 198 199 200 $oProc->CreateTable('calendar_timezones', array( 201 'fd' => array( 202 'id' => array( 'type' => 'auto', 'nullable' => False), 203 'timezone' => array( 'type' => 'varchar','precision' => '150', 'nullable' => False), 204 205 'standard_frequency' => array( 'type' => 'varchar','precision' => '20', 'nullable' => False), 206 'standard_dtstart' => array( 'type' => 'varchar','precision' => '20', 'nullable' => True), 207 'standard_byday' => array( 'type' => 'varchar','precision' => '50', 'nullable' => True), 208 'standard_bymonth' => array( 'type' => 'varchar','precision' => '50', 'nullable' => True), 209 'standard_from' => array( 'type' => 'varchar','precision' => '10', 'nullable' => True), 210 'standard_to' => array( 'type' => 'varchar','precision' => '10', 'nullable' => True), 211 212 'daylight_frequency' => array( 'type' => 'varchar','precision' => '20', 'nullable' => False), 213 'daylight_dtstart' => array( 'type' => 'varchar','precision' => '20', 'nullable' => True), 214 'daylight_byday' => array( 'type' => 'varchar','precision' => '50', 'nullable' => True), 215 'daylight_bymonth' => array( 'type' => 'varchar','precision' => '50', 'nullable' => True), 216 'daylight_from' => array( 'type' => 'varchar','precision' => '10', 'nullable' => True), 217 'daylight_to' => array( 'type' => 'varchar','precision' => '10', 'nullable' => True), 218 219 'dtstamp' => array( 'type' => 'bigint', 'precision' => '16', 'precision' => '16', 'nullable' => False) 220 ), 221 'pk' => array('id'), 222 'fk' => array(), 223 'ix' => array(), 224 'uc' => array() 225 ) 226 ); 227 228 $oProc->query("INSERT INTO calendar_timezones(timezone, standard_frequency, standard_dtstart, standard_byday, 229 standard_bymonth, standard_from, standard_to, daylight_frequency, daylight_dtstart, daylight_byday, 230 daylight_bymonth, daylight_from, daylight_to, dtstamp) VALUES ('America/Sao_Paulo', 'YEARLY', '23:59', 231 '4SA', '2', '-0200','-0300', 'YEARLY', '23:59', '3SA', '10', '-0300','-0200', '". time() ."');"); 232 233 $GLOBALS['setup_info']['expressoCalendar']['currentver'] = '1.011'; 234 return $GLOBALS['setup_info']['expressoCalendar']['currentver']; 235 }; 193 236 194 237 ?>
Note: See TracChangeset
for help on using the changeset viewer.