Changeset 433
- Timestamp:
- 09/16/08 15:40:41 (16 years ago)
- Location:
- trunk/expressoMail1_2/setup
- Files:
-
- 2 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/expressoMail1_2/setup/tables_current.inc.php
r413 r433 9 9 * option) any later version. * 10 10 \**************************************************************************/ 11 $phpgw_baseline = array( 12 'phpgw_expressomail_contacts' => array( 13 'fd' => array( 14 'id_owner' => array( 'type' => 'int', 'precision' => 8, 'nullable' => false), 15 'data' => array( 'type' => 'text') 16 ), 17 'pk' => array('id_owner'), 18 'fk' => array(), 19 'ix' => array(), 20 'uc' => array() 21 ) 22 ); 11 23 /* 12 24 $phpgw_baseline = array( -
trunk/expressoMail1_2/setup/tables_update.inc.php
r413 r433 9 9 * option) any later version. * 10 10 \**************************************************************************/ 11 $test[] = '1.230'; 12 function expressoMail1_2_upgrade1_230() { 13 global $setup_info, $phpgw_setup; 14 $phpgw_setup->oProc->CreateTable('phpgw_expressomail_contacts',array( 15 'fd' => array( 16 'id_owner' => array( 'type' => 'int', 'precision' => 8, 'nullable' => false), 17 'data' => array( 'type' => 'text') 18 ), 19 'pk' => array('id_owner'), 20 'fk' => array(), 21 'ix' => array(), 22 'uc' => array() 23 ) 24 ); 25 $setup_info['expressoMail1_2']['currentver'] = '1_231'; 26 return $setup_info['expressoMail1_2']['currentver']; 11 if ($GLOBALS['setup_info']['expressoMail1_2']['currentver'] == '1.230'){ // TESTE necessario porque a API nao 12 $test[] = '1.230'; // reconhece mudancas de versões onde, 13 function expressoMail1_2_upgrade1_230() { // ((nova_versao - versao_atual) < 3), 14 global $setup_info, $phpgw_setup; // entao e necessario "burlar" a API. 15 $phpgw_setup->oProc->CreateTable('phpgw_expressomail_contacts',array( 16 'fd' => array( 17 'id_owner' => array( 'type' => 'int', 'precision' => 8, 'nullable' => false), 18 'data' => array( 'type' => 'text') 19 ), 20 'pk' => array('id_owner'), 21 'fk' => array(), 22 'ix' => array(), 23 'uc' => array() 24 ) 25 ); 26 $setup_info['expressoMail1_2']['currentver'] = '1.231'; 27 return $setup_info['expressoMail1_2']['currentver']; 28 } 29 } 30 if ($GLOBALS['setup_info']['expressoMail1_2']['currentver'] == '1.222'){ 31 $test[] = '1.222'; 32 function expressoMail1_2_upgrade1_222() { 33 global $setup_info, $phpgw_setup; 34 $phpgw_setup->oProc->CreateTable('phpgw_expressomail_contacts',array( 35 'fd' => array( 36 'id_owner' => array( 'type' => 'int', 'precision' => 8, 'nullable' => false), 37 'data' => array( 'type' => 'text') 38 ), 39 'pk' => array('id_owner'), 40 'fk' => array(), 41 'ix' => array(), 42 'uc' => array() 43 ) 44 ); 45 $setup_info['expressoMail1_2']['currentver'] = '1.231'; 46 return $setup_info['expressoMail1_2']['currentver']; 47 } 48 } 49 if ($GLOBALS['setup_info']['expressoMail1_2']['currentver'] == '1.2211'){ 50 $test[] = '1.2211'; 51 function expressoMail1_2_upgrade1_2211() { 52 global $setup_info, $phpgw_setup; 53 $phpgw_setup->oProc->CreateTable('phpgw_expressomail_contacts',array( 54 'fd' => array( 55 'id_owner' => array( 'type' => 'int', 'precision' => 8, 'nullable' => false), 56 'data' => array( 'type' => 'text') 57 ), 58 'pk' => array('id_owner'), 59 'fk' => array(), 60 'ix' => array(), 61 'uc' => array() 62 ) 63 ); 64 $setup_info['expressoMail1_2']['currentver'] = '1.231'; 65 return $setup_info['expressoMail1_2']['currentver']; 66 } 27 67 } 28 68 29 $test[] = '1.222'; 30 function expressoMail1_2_upgrade1_222() { 31 global $setup_info, $phpgw_setup; 32 $phpgw_setup->oProc->CreateTable('phpgw_expressomail_contacts',array( 33 'fd' => array( 34 'id_owner' => array( 'type' => 'int', 'precision' => 8, 'nullable' => false), 35 'data' => array( 'type' => 'text') 36 ), 37 'pk' => array('id_owner'), 38 'fk' => array(), 39 'ix' => array(), 40 'uc' => array() 41 ) 42 ); 43 $setup_info['expressoMail1_2']['currentver'] = '1_231'; 44 return $setup_info['expressoMail1_2']['currentver']; 45 } 46 47 $test[] = '1.2211'; 48 function expressoMail1_2_upgrade1_2211() { 49 global $setup_info, $phpgw_setup; 50 $phpgw_setup->oProc->CreateTable('phpgw_expressomail_contacts',array( 51 'fd' => array( 52 'id_owner' => array( 'type' => 'int', 'precision' => 8, 'nullable' => false), 53 'data' => array( 'type' => 'text') 54 ), 55 'pk' => array('id_owner'), 56 'fk' => array(), 57 'ix' => array(), 58 'uc' => array() 59 ) 60 ); 61 $setup_info['expressoMail1_2']['currentver'] = '1_231'; 62 return $setup_info['expressoMail1_2']['currentver']; 63 64 } 65 $test[] = '1.2031'; 66 function expressoMail1_2_upgrade1_2031() { 67 global $setup_info, $phpgw_setup; 68 $phpgw_setup->oProc->CreateTable('phpgw_expressomail_contacts',array( 69 'fd' => array( 70 'id_owner' => array( 'type' => 'int', 'precision' => 8, 'nullable' => false), 71 'data' => array( 'type' => 'text') 72 ), 73 'pk' => array('id_owner'), 74 'fk' => array(), 75 'ix' => array(), 76 'uc' => array() 77 ) 78 ); 79 $setup_info['expressoMail1_2']['currentver'] = '1_231'; 80 return $setup_info['expressoMail1_2']['currentver']; 81 } 69 if ($GLOBALS['setup_info']['expressoMail1_2']['currentver'] == '1.2031'){ 70 $test[] = '1.2031'; 71 function expressoMail1_2_upgrade1_2031() { 72 $oProc = $GLOBALS['phpgw_setup']->oProc; 73 $oProc->CreateTable('phpgw_expressomail_contacts',array( 74 'fd' => array( 75 'id_owner' => array( 'type' => 'int', 'precision' => 8, 'nullable' => false), 76 'data' => array( 'type' => 'text') 77 ), 78 'pk' => array('id_owner'), 79 'fk' => array(), 80 'ix' => array(), 81 'uc' => array() 82 ) 83 ); 84 $GLOBALS['setup_info']['expressoMail1_2']['currentver'] = '1.231'; 85 return $GLOBALS['setup_info']['expressoMail1_2']['currentver']; 86 } 87 } 82 88 ?>
Note: See TracChangeset
for help on using the changeset viewer.