[903] | 1 | <?php |
---|
| 2 | /**************************************************************************\ |
---|
| 3 | * phpGroupWare - Setup * |
---|
| 4 | * http://www.phpgroupware.org * |
---|
| 5 | * -------------------------------------------- * |
---|
| 6 | * This program is free software; you can redistribute it and/or modify it * |
---|
| 7 | * under the terms of the GNU General Public License as published by the * |
---|
| 8 | * Free Software Foundation; either version 2 of the License, or (at your * |
---|
| 9 | * option) any later version. * |
---|
| 10 | \**************************************************************************/ |
---|
| 11 | |
---|
| 12 | |
---|
| 13 | $test[] = '0.9.10'; |
---|
| 14 | function phpgwapi_upgrade0_9_10() |
---|
| 15 | { |
---|
| 16 | global $setup_info; |
---|
| 17 | $setup_info['phpgwapi']['currentver'] = '0.9.11.001'; |
---|
| 18 | return $setup_info['phpgwapi']['currentver']; |
---|
| 19 | //return True; |
---|
| 20 | } |
---|
| 21 | |
---|
| 22 | $test[] = '0.9.11.001'; |
---|
| 23 | function phpgwapi_upgrade0_9_11_001() |
---|
| 24 | { |
---|
| 25 | global $setup_info; |
---|
| 26 | $setup_info['phpgwapi']['currentver'] = '0.9.11.002'; |
---|
| 27 | return $setup_info['phpgwapi']['currentver']; |
---|
| 28 | //return True; |
---|
| 29 | } |
---|
| 30 | |
---|
| 31 | $test[] = '0.9.11.002'; |
---|
| 32 | function phpgwapi_upgrade0_9_11_002() |
---|
| 33 | { |
---|
| 34 | global $phpgw_info, $phpgw_setup; |
---|
| 35 | |
---|
| 36 | $phpgw_setup->oProc->AddColumn('phpgw_categories','cat_main',array('type' => 'int', 'precision' => 4, 'default' => 0, 'nullable' => False)); |
---|
| 37 | $phpgw_setup->oProc->AddColumn('phpgw_categories','cat_level',array('type' => 'int', 'precision' => 4, 'default' => 0, 'nullable' => False)); |
---|
| 38 | |
---|
| 39 | $setup_info['phpgwapi']['currentver'] = '0.9.11.003'; |
---|
| 40 | return $setup_info['phpgwapi']['currentver']; |
---|
| 41 | } |
---|
| 42 | |
---|
| 43 | $test[] = '0.9.11.003'; |
---|
| 44 | function phpgwapi_upgrade0_9_11_003() |
---|
| 45 | { |
---|
| 46 | global $setup_info; |
---|
| 47 | $setup_info['phpgwapi']['currentver'] = '0.9.11.004'; |
---|
| 48 | return $setup_info['phpgwapi']['currentver']; |
---|
| 49 | //return True; |
---|
| 50 | } |
---|
| 51 | |
---|
| 52 | $test[] = '0.9.11.004'; |
---|
| 53 | function phpgwapi_upgrade0_9_11_004() |
---|
| 54 | { |
---|
| 55 | global $setup_info, $phpgw_setup; |
---|
| 56 | |
---|
| 57 | $phpgw_setup->oProc->AddColumn('phpgw_config','config_app', array('type' => 'varchar', 'precision' => 50)); |
---|
| 58 | $phpgw_setup->oProc->query("UPDATE phpgw_config SET config_app='phpgwapi'",__LINE__,__FILE__); |
---|
| 59 | |
---|
| 60 | $setup_info['phpgwapi']['currentver'] = '0.9.11.005'; |
---|
| 61 | return $setup_info['phpgwapi']['currentver']; |
---|
| 62 | //return True; |
---|
| 63 | } |
---|
| 64 | |
---|
| 65 | $test[] = '0.9.11.005'; |
---|
| 66 | function phpgwapi_upgrade0_9_11_005() |
---|
| 67 | { |
---|
| 68 | global $setup_info, $phpgw_setup; |
---|
| 69 | |
---|
| 70 | $phpgw_setup->oProc->AddColumn('phpgw_accounts','account_expires', array('type' => 'int', 'precision' => 4)); |
---|
| 71 | $phpgw_setup->oProc->query("UPDATE phpgw_accounts SET account_expires='-1'",__LINE__,__FILE__); |
---|
| 72 | |
---|
| 73 | $setup_info['phpgwapi']['currentver'] = '0.9.11.006'; |
---|
| 74 | return $setup_info['phpgwapi']['currentver']; |
---|
| 75 | //return True; |
---|
| 76 | } |
---|
| 77 | |
---|
| 78 | $test[] = '0.9.11.006'; |
---|
| 79 | function phpgwapi_upgrade0_9_11_006() |
---|
| 80 | { |
---|
| 81 | global $setup_info; |
---|
| 82 | $setup_info['phpgwapi']['currentver'] = '0.9.11.007'; |
---|
| 83 | return $setup_info['phpgwapi']['currentver']; |
---|
| 84 | //return True; |
---|
| 85 | } |
---|
| 86 | |
---|
| 87 | $test[] = '0.9.11.007'; |
---|
| 88 | function phpgwapi_upgrade0_9_11_007() |
---|
| 89 | { |
---|
| 90 | global $setup_info; |
---|
| 91 | $setup_info['phpgwapi']['currentver'] = '0.9.11.008'; |
---|
| 92 | return $setup_info['phpgwapi']['currentver']; |
---|
| 93 | //return True; |
---|
| 94 | } |
---|
| 95 | |
---|
| 96 | $test[] = '0.9.11.008'; |
---|
| 97 | function phpgwapi_upgrade0_9_11_008() |
---|
| 98 | { |
---|
| 99 | global $setup_info, $phpgw_setup; |
---|
| 100 | |
---|
| 101 | $phpgw_setup->oProc->DropTable('profiles'); |
---|
| 102 | |
---|
| 103 | $setup_info['phpgwapi']['currentver'] = '0.9.11.009'; |
---|
| 104 | return $setup_info['phpgwapi']['currentver']; |
---|
| 105 | //return True; |
---|
| 106 | } |
---|
| 107 | |
---|
| 108 | $test[] = '0.9.11.009'; |
---|
| 109 | function phpgwapi_upgrade0_9_11_009() |
---|
| 110 | { |
---|
| 111 | global $setup_info; |
---|
| 112 | $setup_info['phpgwapi']['currentver'] = '0.9.11.010'; |
---|
| 113 | return $setup_info['phpgwapi']['currentver']; |
---|
| 114 | //return True; |
---|
| 115 | } |
---|
| 116 | |
---|
| 117 | $test[] = '0.9.11.010'; |
---|
| 118 | function phpgwapi_upgrade0_9_11_010() |
---|
| 119 | { |
---|
| 120 | global $setup_info; |
---|
| 121 | $setup_info['phpgwapi']['currentver'] = '0.9.13.001'; |
---|
| 122 | return $setup_info['phpgwapi']['currentver']; |
---|
| 123 | //return True; |
---|
| 124 | } |
---|
| 125 | |
---|
| 126 | $test[] = '0.9.11.011'; |
---|
| 127 | function phpgwapi_upgrade0_9_11_011() |
---|
| 128 | { |
---|
| 129 | global $setup_info; |
---|
| 130 | |
---|
| 131 | $setup_info['phpgwapi']['currentver'] = '0.9.13.001'; |
---|
| 132 | return $setup_info['phpgwapi']['currentver']; |
---|
| 133 | } |
---|
| 134 | ?> |
---|