added column cat_access to phpgw_categories

This commit is contained in:
bettina
2001-01-28 23:13:59 +00:00
parent 5746fb0eef
commit 2a5777bb22
4 changed files with 13 additions and 0 deletions

View File

@@ -266,6 +266,7 @@
cat_id int(9) DEFAULT '0' NOT NULL auto_increment, cat_id int(9) DEFAULT '0' NOT NULL auto_increment,
cat_parent int(9) DEFAULT '0' NOT NULL, cat_parent int(9) DEFAULT '0' NOT NULL,
cat_owner int(11) DEFAULT '0' NOT NULL, cat_owner int(11) DEFAULT '0' NOT NULL,
cat_access varchar(25),
cat_appname varchar(50) NOT NULL, cat_appname varchar(50) NOT NULL,
cat_name varchar(150) NOT NULL, cat_name varchar(150) NOT NULL,
cat_description varchar(255) NOT NULL, cat_description varchar(255) NOT NULL,

View File

@@ -831,6 +831,12 @@
$phpgw_info["setup"]["currentver"]["phpgwapi"] = "0.9.10pre1"; $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); reset ($test);
while (list ($key, $value) = each ($test)){ while (list ($key, $value) = each ($test)){
if ($phpgw_info["setup"]["currentver"]["phpgwapi"] == $value) { if ($phpgw_info["setup"]["currentver"]["phpgwapi"] == $value) {

View File

@@ -241,6 +241,7 @@
cat_id serial, cat_id serial,
cat_parent int, cat_parent int,
cat_owner int, cat_owner int,
cat_access varchar(25),
cat_appname varchar(50) NOT NULL, cat_appname varchar(50) NOT NULL,
cat_name varchar(150) NOT NULL, cat_name varchar(150) NOT NULL,
cat_description varchar(255) NOT NULL, cat_description varchar(255) NOT NULL,

View File

@@ -856,6 +856,11 @@
$phpgw_info["setup"]["currentver"]["phpgwapi"] = "0.9.10pre1"; $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); reset ($test);
while (list ($key, $value) = each ($test)){ while (list ($key, $value) = each ($test)){