From 93e9ede29e0224a24f711763ac8ac933836c5de7 Mon Sep 17 00:00:00 2001 From: skeeter Date: Fri, 23 Mar 2001 03:34:25 +0000 Subject: [PATCH] MYSQL didn't upgrade... created new version to handle upgrade properly. --- setup/sql/mysql_upgrade_beta.inc.php | 18 ++++++++++++++++-- setup/sql/pgsql_upgrade_beta.inc.php | 6 ++++++ version.inc.php | 2 +- 3 files changed, 23 insertions(+), 3 deletions(-) diff --git a/setup/sql/mysql_upgrade_beta.inc.php b/setup/sql/mysql_upgrade_beta.inc.php index 01c141801d..e9dc4184d0 100644 --- a/setup/sql/mysql_upgrade_beta.inc.php +++ b/setup/sql/mysql_upgrade_beta.inc.php @@ -1327,15 +1327,29 @@ global $phpgw_info, $phpgw_setup; $sql = "create table phpgw_nextid ( - appname varchar(25) NOT NULL, + appname varchar(25), id int(8), - UNIQUE (appname) + UNIQUE (appname) )"; $phpgw_setup->db->query($sql); $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); while (list ($key, $value) = each ($test)){ if ($phpgw_info["setup"]["currentver"]["phpgwapi"] == $value) { diff --git a/setup/sql/pgsql_upgrade_beta.inc.php b/setup/sql/pgsql_upgrade_beta.inc.php index e493382bfe..49b468dd8b 100644 --- a/setup/sql/pgsql_upgrade_beta.inc.php +++ b/setup/sql/pgsql_upgrade_beta.inc.php @@ -1583,6 +1583,12 @@ $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); while (list ($key, $value) = each ($test)){ if ($phpgw_info["setup"]["currentver"]["phpgwapi"] == $value) { diff --git a/version.inc.php b/version.inc.php index 48fc1186f5..7bbf373c1c 100644 --- a/version.inc.php +++ b/version.inc.php @@ -11,5 +11,5 @@ /* $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";