1 | <?php |
---|
2 | /**************************************************************************\ |
---|
3 | * eGroupWare - Setup * |
---|
4 | * http://www.egroupware.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 | $test[] = '0.9.2'; |
---|
12 | function calendar_upgrade0_9_2() |
---|
13 | { |
---|
14 | $GLOBALS['setup_info']['calendar']['currentver'] = '0.9.17'; |
---|
15 | return $GLOBALS['setup_info']['calendar']['currentver']; |
---|
16 | } |
---|
17 | $test[] = '0.9.17'; |
---|
18 | function calendar_upgrade0_9_17() |
---|
19 | { |
---|
20 | $GLOBALS['setup_info']['calendar']['currentver'] = '0.9.21'; |
---|
21 | return $GLOBALS['setup_info']['calendar']['currentver']; |
---|
22 | } |
---|
23 | $test[] = '0.9.20'; |
---|
24 | function calendar_upgrade0_9_20() |
---|
25 | { |
---|
26 | $GLOBALS['setup_info']['calendar']['currentver'] = '0.9.21'; |
---|
27 | return $GLOBALS['setup_info']['calendar']['currentver']; |
---|
28 | } |
---|
29 | $test[] = '0.9.21'; |
---|
30 | function calendar_upgrade0_9_21() |
---|
31 | { |
---|
32 | /* |
---|
33 | $GLOBALS['phpgw_setup']->oProc->AddColumn('phpgw_cal','last_status',array( |
---|
34 | 'type' => 'char', |
---|
35 | 'precision' => '1', |
---|
36 | 'default' => 'N::bpchar')); |
---|
37 | $GLOBALS['phpgw_setup']->oProc->AddColumn('phpgw_cal','last_update',array( |
---|
38 | 'type' => 'int8', |
---|
39 | 'precision' => '8', |
---|
40 | 'default' => '(date_part(\'epoch\'::text, (\'now\'::text)::timestamp(3) with time zone) * (1000)::double precision)')); |
---|
41 | */ |
---|
42 | $GLOBALS['phpgw_setup']->db->query("ALTER TABLE phpgw_cal ADD COLUMN last_status char(1) DEFAULT 'N'::bpchar"); |
---|
43 | $GLOBALS['phpgw_setup']->db->query("ALTER TABLE phpgw_cal ADD COLUMN last_update int8 DEFAULT (date_part('epoch'::text, ('now'::text)::timestamp(3) with time zone) * (1000)::double precision)"); |
---|
44 | |
---|
45 | $GLOBALS['setup_info']['calendar']['currentver'] = '0.9.22'; |
---|
46 | return $GLOBALS['setup_info']['calendar']['currentver']; |
---|
47 | } |
---|
48 | |
---|
49 | ?> |
---|