Changeset 1035 for trunk/expressoMail1_2/setup/tables_update.inc.php
- Timestamp:
- 06/20/09 01:07:18 (15 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/expressoMail1_2/setup/tables_update.inc.php
r1034 r1035 12 12 $test[] = '1.233'; 13 13 function expressoMail1_2_upgrade1_233() { 14 $setup_info['expressoMail1_2']['currentver'] = '1.234'; 15 return $setup_info['expressoMail1_2']['currentver']; 14 $oProc = $GLOBALS['phpgw_setup']->oProc; 15 $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 27 $oProc->CreateTable('phpgw_certificados',array( 28 'fd' => array( 29 'email' => array( 'type' => 'varchar', 'precision' => 60, 'nullable' => false), 30 'chave_publica' => array( 'type' => 'text'), 31 'expirado' => array('type' => 'bool', 'default' => 'false'), 32 'revogado' => array('type' => 'bool', 'default' => 'false'), 33 'serialnumber' => array('type' => 'int', 'precision' => 8, 'nullable' => false), 34 'authoritykeyidentifier' => array( 'type' => 'text', 'nullable' => false), 35 ), 36 'pk' => array('email','serialnumber','authoritykeyidentifier'), 37 'fk' => array(), 38 'ix' => array(), 39 'uc' => array() 40 ) 41 ); 42 43 $GLOBALS['setup_info']['expressoMail1_2']['currentver'] = '1.334'; 44 return $GLOBALS['setup_info']['expressoMail1_2']['currentver']; 16 45 } 17 46 } … … 53 82 if ($GLOBALS['setup_info']['expressoMail1_2']['currentver'] == '1.222'){ 54 83 $test[] = '1.222'; 55 function expressoMail1_2_upgrade1_222() {return expressoMail1_2_upgrade1_230(); } 84 function expressoMail1_2_upgrade1_222() { 85 $oProc = $GLOBALS['phpgw_setup']->oProc; 86 $oProc->CreateTable('phpgw_expressomail_contacts',array( 87 'fd' => array( 88 'id_owner' => array( 'type' => 'int', 'precision' => 8, 'nullable' => false), 89 'data' => array( 'type' => 'text') 90 ), 91 'pk' => array('id_owner'), 92 'fk' => array(), 93 'ix' => array(), 94 'uc' => array() 95 ) 96 ); 97 $oProc->CreateTable('phpgw_certificados',array( 98 'fd' => array( 99 'email' => array( 'type' => 'varchar', 'precision' => 60, 'nullable' => false), 100 'chave_publica' => array( 'type' => 'text'), 101 'expirado' => array('type' => 'bool', 'default' => 'false') 102 ), 103 'pk' => array('email'), 104 'fk' => array(), 105 'ix' => array(), 106 'uc' => array() 107 ) 108 ); 109 $GLOBALS['setup_info']['expressoMail1_2']['currentver'] = '1.223'; 110 return $GLOBALS['setup_info']['expressoMail1_2']['currentver']; 111 } 56 112 } 57 113 if ($GLOBALS['setup_info']['expressoMail1_2']['currentver'] == '1.2211'){ 58 114 $test[] = '1.2211'; 59 function expressoMail1_2_upgrade1_2211() {return expressoMail1_2_upgrade1_230();} 115 function expressoMail1_2_upgrade1_2211() { 116 $oProc = $GLOBALS['phpgw_setup']->oProc; 117 $oProc->CreateTable('phpgw_expressomail_contacts',array( 118 'fd' => array( 119 'id_owner' => array( 'type' => 'int', 'precision' => 8, 'nullable' => false), 120 'data' => array( 'type' => 'text') 121 ), 122 'pk' => array('id_owner'), 123 'fk' => array(), 124 'ix' => array(), 125 'uc' => array() 126 ) 127 ); 128 $oProc->CreateTable('phpgw_certificados',array( 129 'fd' => array( 130 'email' => array( 'type' => 'varchar', 'precision' => 60, 'nullable' => false), 131 'chave_publica' => array( 'type' => 'text'), 132 'expirado' => array('type' => 'bool', 'default' => 'false') 133 ), 134 'pk' => array('email'), 135 'fk' => array(), 136 'ix' => array(), 137 'uc' => array() 138 ) 139 ); 140 $GLOBALS['setup_info']['expressoMail1_2']['currentver'] = '1.223'; 141 return $GLOBALS['setup_info']['expressoMail1_2']['currentver']; 142 } 60 143 } 61 144 if ($GLOBALS['setup_info']['expressoMail1_2']['currentver'] == '1.2201'){ … … 66 149 if ($GLOBALS['setup_info']['expressoMail1_2']['currentver'] == '1.2031'){ 67 150 $test[] = '1.2031'; 68 function expressoMail1_2_upgrade1_2031() {return expressoMail1_2_upgrade1_230();} 151 function expressoMail1_2_upgrade1_2031() { 152 $oProc = $GLOBALS['phpgw_setup']->oProc; 153 $oProc->CreateTable('phpgw_expressomail_contacts',array( 154 'fd' => array( 155 'id_owner' => array( 'type' => 'int', 'precision' => 8, 'nullable' => false), 156 'data' => array( 'type' => 'text') 157 ), 158 'pk' => array('id_owner'), 159 'fk' => array(), 160 'ix' => array(), 161 'uc' => array() 162 ) 163 ); 164 $oProc->CreateTable('phpgw_certificados',array( 165 'fd' => array( 166 'email' => array( 'type' => 'varchar', 'precision' => 60, 'nullable' => false), 167 'chave_publica' => array( 'type' => 'text'), 168 'expirado' => array('type' => 'bool', 'default' => 'false') 169 ), 170 'pk' => array('email'), 171 'fk' => array(), 172 'ix' => array(), 173 'uc' => array() 174 ) 175 ); 176 $GLOBALS['setup_info']['expressoMail1_2']['currentver'] = '1.223'; 177 return $GLOBALS['setup_info']['expressoMail1_2']['currentver']; 178 } 69 179 } 70 180 ?>
Note: See TracChangeset
for help on using the changeset viewer.