mirror of
https://github.com/EGroupware/egroupware.git
synced 2024-12-31 19:19:43 +01:00
Change the todo table to use the phpgw_ prefix
This commit is contained in:
parent
cbd9cbadc8
commit
4af9f4af7d
@ -91,6 +91,7 @@
|
||||
)";
|
||||
$phpgw_setup->db->query($sql);
|
||||
|
||||
// Note: This table will be removed durring 0.9.11
|
||||
$sql = "CREATE TABLE profiles (
|
||||
con int(11) DEFAULT '0' NOT NULL auto_increment,
|
||||
owner varchar(20),
|
||||
@ -192,7 +193,7 @@
|
||||
);";
|
||||
$phpgw_setup->db->query($sql);
|
||||
|
||||
$sql = "CREATE TABLE todo (
|
||||
$sql = "CREATE TABLE phpgw_todo (
|
||||
todo_id int(11) DEFAULT '0' NOT NULL auto_increment,
|
||||
todo_id_parent int(11) DEFAULT '0' NOT NULL,
|
||||
todo_owner varchar(25),
|
||||
@ -344,7 +345,7 @@
|
||||
)";
|
||||
$phpgw_setup->db->query($sql);
|
||||
|
||||
$phpgw_info['setup']['currentver']['phpgwapi'] = '0.9.10pre22';
|
||||
$phpgw_info['setup']['currentver']['phpgwapi'] = '0.9.10pre23';
|
||||
$phpgw_info['setup']['oldver']['phpgwapi'] = $phpgw_info['setup']['currentver']['phpgwapi'];
|
||||
update_version_table();
|
||||
// $phpgw_setup->update_version_table();
|
||||
|
@ -1374,6 +1374,18 @@
|
||||
$phpgw_info['setup']['currentver']['phpgwapi'] = '0.9.10pre22';
|
||||
}
|
||||
|
||||
$test[] = '0.9.10pre22';
|
||||
function upgrade0_9_10pre22()
|
||||
{
|
||||
global $phpgw_info, $phpgw_setup;
|
||||
|
||||
$phpgw_setup->db->query("alter table todo rename phpgw_todo",__LINE__,__FILE__);
|
||||
|
||||
$phpgw_setup->db->query($sql);
|
||||
$phpgw_info['setup']['currentver']['phpgwapi'] = '0.9.10pre23';
|
||||
}
|
||||
|
||||
|
||||
reset ($test);
|
||||
while (list ($key, $value) = each ($test)){
|
||||
if ($phpgw_info["setup"]["currentver"]["phpgwapi"] == $value) {
|
||||
|
@ -90,6 +90,7 @@
|
||||
)";
|
||||
$phpgw_setup->db->query($sql);
|
||||
|
||||
// Note: This table will be removed durring 0.9.11
|
||||
$sql = "CREATE TABLE profiles (
|
||||
con serial,
|
||||
owner varchar(20),
|
||||
@ -168,7 +169,7 @@
|
||||
|
||||
$phpgw_setup->db->query($sql);
|
||||
|
||||
$sql = "create table todo (
|
||||
$sql = "create table phpgw_todo (
|
||||
todo_id serial,
|
||||
todo_id_parent int,
|
||||
todo_owner varchar(25),
|
||||
@ -312,7 +313,7 @@
|
||||
)";
|
||||
$phpgw_setup->db->query($sql);
|
||||
|
||||
$phpgw_info['setup']['currentver']['phpgwapi'] = '0.9.10pre22';
|
||||
$phpgw_info['setup']['currentver']['phpgwapi'] = '0.9.10pre23';
|
||||
$phpgw_info['setup']['oldver']['phpgwapi'] = $phpgw_info['setup']['currentver']['phpgwapi'];
|
||||
update_version_table();
|
||||
?>
|
||||
|
@ -1732,6 +1732,17 @@
|
||||
$phpgw_info['setup']['currentver']['phpgwapi'] = '0.9.10pre22';
|
||||
}
|
||||
|
||||
$test[] = '0.9.10pre22';
|
||||
function upgrade0_9_10pre22()
|
||||
{
|
||||
global $phpgw_info, $phpgw_setup;
|
||||
|
||||
$phpgw_setup->db->query("alter table todo rename to phpgw_todo",__LINE__,__FILE__);
|
||||
|
||||
$phpgw_setup->db->query($sql);
|
||||
$phpgw_info['setup']['currentver']['phpgwapi'] = '0.9.10pre23';
|
||||
}
|
||||
|
||||
reset ($test);
|
||||
while (list ($key, $value) = each ($test)){
|
||||
if ($phpgw_info["setup"]["currentver"]["phpgwapi"] == $value) {
|
||||
|
@ -11,5 +11,5 @@
|
||||
|
||||
/* $Id$ */
|
||||
|
||||
$phpgw_info["server"]["versions"]["phpgwapi"] = "0.9.10pre22";
|
||||
$phpgw_info["server"]["versions"]["phpgwapi"] = "0.9.10pre23";
|
||||
$phpgw_info["server"]["versions"]["current_header"] = "1.11";
|
||||
|
Loading…
Reference in New Issue
Block a user