MYSQL didn't upgrade... created new version to handle upgrade properly.

This commit is contained in:
skeeter 2001-03-23 03:34:25 +00:00
parent 489ae046af
commit 93e9ede29e
3 changed files with 23 additions and 3 deletions

View File

@ -1327,15 +1327,29 @@
global $phpgw_info, $phpgw_setup; global $phpgw_info, $phpgw_setup;
$sql = "create table phpgw_nextid ( $sql = "create table phpgw_nextid (
appname varchar(25) NOT NULL, appname varchar(25),
id int(8), id int(8),
UNIQUE (appname) UNIQUE (appname)
)"; )";
$phpgw_setup->db->query($sql); $phpgw_setup->db->query($sql);
$phpgw_info['setup']['currentver']['phpgwapi'] = '0.9.10pre19'; $phpgw_info['setup']['currentver']['phpgwapi'] = '0.9.10pre19';
} }
$test[] = '0.9.10pre19';
function upgrade0_9_10pre19() {
global $phpgw_info, $phpgw_setup;
$sql = "create table phpgw_nextid (
appname varchar(25) NOT NULL,
id int(8),
UNIQUE (appname)
)";
$phpgw_setup->db->query($sql);
$phpgw_info['setup']['currentver']['phpgwapi'] = '0.9.10pre20';
}
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

@ -1583,6 +1583,12 @@
$phpgw_info['setup']['currentver']['phpgwapi'] = '0.9.10pre19'; $phpgw_info['setup']['currentver']['phpgwapi'] = '0.9.10pre19';
} }
$test[] = '0.9.10pre19';
function upgrade0_9_10pre19() {
global $phpgw_info, $phpgw_setup;
$phpgw_info['setup']['currentver']['phpgwapi'] = '0.9.10pre20';
}
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

@ -11,5 +11,5 @@
/* $Id$ */ /* $Id$ */
$phpgw_info["server"]["versions"]["phpgwapi"] = "0.9.10pre19"; $phpgw_info["server"]["versions"]["phpgwapi"] = "0.9.10pre20";
$phpgw_info["server"]["versions"]["current_header"] = "1.11"; $phpgw_info["server"]["versions"]["current_header"] = "1.11";