diff --git a/setup/sql/mysql_newtables.inc.php b/setup/sql/mysql_newtables.inc.php index 1cf2986f04..54c40e132c 100644 --- a/setup/sql/mysql_newtables.inc.php +++ b/setup/sql/mysql_newtables.inc.php @@ -266,6 +266,7 @@ cat_id int(9) DEFAULT '0' NOT NULL auto_increment, cat_parent int(9) DEFAULT '0' NOT NULL, cat_owner int(11) DEFAULT '0' NOT NULL, + cat_access varchar(25), cat_appname varchar(50) NOT NULL, cat_name varchar(150) NOT NULL, cat_description varchar(255) NOT NULL, diff --git a/setup/sql/mysql_upgrade_beta.inc.php b/setup/sql/mysql_upgrade_beta.inc.php index 3f969e9dbe..cd27624cf5 100644 --- a/setup/sql/mysql_upgrade_beta.inc.php +++ b/setup/sql/mysql_upgrade_beta.inc.php @@ -831,6 +831,12 @@ $phpgw_info["setup"]["currentver"]["phpgwapi"] = "0.9.10pre1"; } + $test[] = "0.9.10pre1"; + function upgrade0_9_10pre1(){ + global $phpgw_info, $phpgw_setup; + $phpgw_setup->db->query("alter table phpgw_categories add column cat_access varchar(25) after cat_owner"); + } + reset ($test); while (list ($key, $value) = each ($test)){ if ($phpgw_info["setup"]["currentver"]["phpgwapi"] == $value) { diff --git a/setup/sql/pgsql_newtables.inc.php b/setup/sql/pgsql_newtables.inc.php index 20e09e9043..0ce60de1f5 100644 --- a/setup/sql/pgsql_newtables.inc.php +++ b/setup/sql/pgsql_newtables.inc.php @@ -241,6 +241,7 @@ cat_id serial, cat_parent int, cat_owner int, + cat_access varchar(25), cat_appname varchar(50) NOT NULL, cat_name varchar(150) NOT NULL, cat_description varchar(255) NOT NULL, diff --git a/setup/sql/pgsql_upgrade_beta.inc.php b/setup/sql/pgsql_upgrade_beta.inc.php index 47a045fce4..789444fe5d 100644 --- a/setup/sql/pgsql_upgrade_beta.inc.php +++ b/setup/sql/pgsql_upgrade_beta.inc.php @@ -856,6 +856,11 @@ $phpgw_info["setup"]["currentver"]["phpgwapi"] = "0.9.10pre1"; } + $test[] = "0.9.10pre1"; + function upgrade0_9_10pre1(){ + global $phpgw_info, $phpgw_setup; + $phpgw_setup->db->query("alter table phpgw_categories add column cat_access varchar(25) after cat_owner"); + } reset ($test); while (list ($key, $value) = each ($test)){