[ Index ] |
|
Code source de eGroupWare 1.2.106-2 |
1 <?php 2 /**************************************************************************\ 3 * EGroupWare - EMailadmin * 4 * http://www.egroupware.org * 5 * http://www.phpgw.de * 6 * Author: lkneschke@phpgw.de * 7 * -------------------------------------------- * 8 * This program is free software; you can redistribute it and/or modify it * 9 * under the terms of the GNU General Public License as published by the * 10 * Free Software Foundation; either version 2 of the License, or (at your * 11 * option) any later version. * 12 \**************************************************************************/ 13 /* $Id: tables_update.inc.php 20295 2006-02-15 12:31:25Z $ */ 14 15 $test[] = '0.0.3'; 16 function emailadmin_upgrade0_0_3() 17 { 18 $GLOBALS['egw_setup']->oProc->AddColumn('phpgw_emailadmin','smtpType', array('type' => 'int', 'precision' => 4)); 19 20 return $setup_info['emailadmin']['currentver'] = '0.0.4'; 21 } 22 23 $test[] = '0.0.4'; 24 function emailadmin_upgrade0_0_4() 25 { 26 $GLOBALS['egw_setup']->oProc->AddColumn('phpgw_emailadmin','defaultDomain', array('type' => 'varchar', 'precision' => 100)); 27 28 return $setup_info['emailadmin']['currentver'] = '0.0.5'; 29 } 30 31 $test[] = '0.0.5'; 32 function emailadmin_upgrade0_0_5() 33 { 34 $GLOBALS['egw_setup']->oProc->AddColumn('phpgw_emailadmin','organisationName', array('type' => 'varchar', 'precision' => 100)); 35 $GLOBALS['egw_setup']->oProc->AddColumn('phpgw_emailadmin','userDefinedAccounts', array('type' => 'varchar', 'precision' => 3)); 36 37 return $setup_info['emailadmin']['currentver'] = '0.0.6'; 38 } 39 40 41 42 $test[] = '0.0.6'; 43 function emailadmin_upgrade0_0_6() 44 { 45 $GLOBALS['egw_setup']->oProc->AddColumn('phpgw_emailadmin','oldimapcclient',array( 46 'type' => 'varchar', 47 'precision' => '3' 48 )); 49 50 return $GLOBALS['setup_info']['emailadmin']['currentver'] = '0.0.007'; 51 } 52 53 54 $test[] = '0.0.007'; 55 function emailadmin_upgrade0_0_007() 56 { 57 $GLOBALS['egw_setup']->oProc->RenameColumn('phpgw_emailadmin','oldimapcclient','imapoldcclient'); 58 59 return $GLOBALS['setup_info']['emailadmin']['currentver'] = '0.0.008'; 60 } 61 62 63 $test[] = '0.0.008'; 64 function emailadmin_upgrade0_0_008() 65 { 66 return $GLOBALS['setup_info']['emailadmin']['currentver'] = '1.0.0'; 67 } 68 69 $test[] = '1.0.0'; 70 function emailadmin_upgrade1_0_0() 71 { 72 $GLOBALS['egw_setup']->oProc->AddColumn('phpgw_emailadmin','editforwardingaddress',array( 73 'type' => 'varchar', 74 'precision' => '3' 75 )); 76 77 return $GLOBALS['setup_info']['emailadmin']['currentver'] = '1.0.1'; 78 } 79 80 $test[] = '1.0.1'; 81 function emailadmin_upgrade1_0_1() 82 { 83 $GLOBALS['egw_setup']->oProc->AddColumn('phpgw_emailadmin','ea_order', array('type' => 'int', 'precision' => 4)); 84 85 return $GLOBALS['setup_info']['emailadmin']['currentver'] = '1.0.2'; 86 } 87 88 $test[] = '1.0.2'; 89 function emailadmin_upgrade1_0_2() 90 { 91 $GLOBALS['egw_setup']->oProc->AddColumn('phpgw_emailadmin','ea_appname', array('type' => 'varchar','precision' => '80')); 92 $GLOBALS['egw_setup']->oProc->AddColumn('phpgw_emailadmin','ea_group', array('type' => 'varchar','precision' => '80')); 93 94 return $GLOBALS['setup_info']['emailadmin']['currentver'] = '1.0.3'; 95 } 96 97 $test[] = '1.0.3'; 98 function emailadmin_upgrade1_0_3() 99 { 100 $GLOBALS['egw_setup']->oProc->RenameTable('phpgw_emailadmin','egw_emailadmin'); 101 102 return $GLOBALS['setup_info']['emailadmin']['currentver'] = '1.2'; 103 } 104 105 $test[] = '1.2'; 106 function emailadmin_upgrade1_2() 107 { 108 $GLOBALS['egw_setup']->oProc->RenameColumn('egw_emailadmin','profileID','ea_profile_id'); 109 $GLOBALS['egw_setup']->oProc->RenameColumn('egw_emailadmin','smtpServer','ea_smtp_server'); 110 $GLOBALS['egw_setup']->oProc->RenameColumn('egw_emailadmin','smtpType','ea_smtp_type'); 111 $GLOBALS['egw_setup']->oProc->RenameColumn('egw_emailadmin','smtpPort','ea_smtp_port'); 112 $GLOBALS['egw_setup']->oProc->RenameColumn('egw_emailadmin','smtpAuth','ea_smtp_auth'); 113 $GLOBALS['egw_setup']->oProc->RenameColumn('egw_emailadmin','editforwardingaddress','ea_editforwardingaddress'); 114 $GLOBALS['egw_setup']->oProc->RenameColumn('egw_emailadmin','smtpLDAPServer','ea_smtp_ldap_server'); 115 $GLOBALS['egw_setup']->oProc->RenameColumn('egw_emailadmin','smtpLDAPBaseDN','ea_smtp_ldap_basedn'); 116 $GLOBALS['egw_setup']->oProc->RenameColumn('egw_emailadmin','smtpLDAPAdminDN','ea_smtp_ldap_admindn'); 117 $GLOBALS['egw_setup']->oProc->RenameColumn('egw_emailadmin','smtpLDAPAdminPW','ea_smtp_ldap_adminpw'); 118 $GLOBALS['egw_setup']->oProc->RenameColumn('egw_emailadmin','smtpLDAPUseDefault','ea_smtp_ldap_use_default'); 119 $GLOBALS['egw_setup']->oProc->RenameColumn('egw_emailadmin','imapServer','ea_imap_server'); 120 $GLOBALS['egw_setup']->oProc->RenameColumn('egw_emailadmin','imapType','ea_imap_type'); 121 $GLOBALS['egw_setup']->oProc->RenameColumn('egw_emailadmin','imapPort','ea_imap_port'); 122 $GLOBALS['egw_setup']->oProc->RenameColumn('egw_emailadmin','imapLoginType','ea_imap_login_type'); 123 $GLOBALS['egw_setup']->oProc->RenameColumn('egw_emailadmin','imapTLSAuthentication','ea_imap_tsl_auth'); 124 $GLOBALS['egw_setup']->oProc->RenameColumn('egw_emailadmin','imapTLSEncryption','ea_imap_tsl_encryption'); 125 $GLOBALS['egw_setup']->oProc->RenameColumn('egw_emailadmin','imapEnableCyrusAdmin','ea_imap_enable_cyrus'); 126 $GLOBALS['egw_setup']->oProc->RenameColumn('egw_emailadmin','imapAdminUsername','ea_imap_admin_user'); 127 $GLOBALS['egw_setup']->oProc->RenameColumn('egw_emailadmin','imapAdminPW','ea_imap_admin_pw'); 128 $GLOBALS['egw_setup']->oProc->RenameColumn('egw_emailadmin','imapEnableSieve','ea_imap_enable_sieve'); 129 $GLOBALS['egw_setup']->oProc->RenameColumn('egw_emailadmin','imapSieveServer','ea_imap_sieve_server'); 130 $GLOBALS['egw_setup']->oProc->RenameColumn('egw_emailadmin','imapSievePort','ea_imap_sieve_port'); 131 $GLOBALS['egw_setup']->oProc->RenameColumn('egw_emailadmin','description','ea_description'); 132 $GLOBALS['egw_setup']->oProc->RenameColumn('egw_emailadmin','defaultDomain','ea_default_domain'); 133 $GLOBALS['egw_setup']->oProc->RenameColumn('egw_emailadmin','organisationName','ea_organisation_name'); 134 $GLOBALS['egw_setup']->oProc->RenameColumn('egw_emailadmin','userDefinedAccounts','ea_user_defined_accounts'); 135 $GLOBALS['egw_setup']->oProc->RenameColumn('egw_emailadmin','imapoldcclient','ea_imapoldcclient'); 136 137 return $GLOBALS['setup_info']['emailadmin']['currentver'] = '1.2.001'; 138 } 139 ?>
titre
Description
Corps
titre
Description
Corps
titre
Description
Corps
titre
Corps
Généré le : Sun Feb 25 17:20:01 2007 | par Balluche grâce à PHPXref 0.7 |