From 24c586773e5d3c36d9ba7840faa66c7586a82e9f Mon Sep 17 00:00:00 2001 From: jengo Date: Mon, 5 Feb 2001 16:41:06 +0000 Subject: [PATCH] Fixed upgrade bug --- setup/sql/pgsql_upgrade_beta.inc.php | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/setup/sql/pgsql_upgrade_beta.inc.php b/setup/sql/pgsql_upgrade_beta.inc.php index b9d42d9c44..5d87c7a832 100644 --- a/setup/sql/pgsql_upgrade_beta.inc.php +++ b/setup/sql/pgsql_upgrade_beta.inc.php @@ -901,10 +901,9 @@ function upgrade0_9_10pre3() { global $phpgw_info, $phpgw_setup; - $phpgw_setup->db->query("alter table accounts rename phpgw_accounts",__LINE__,__FILE__); $phpgw_setup->db->query("create table phpgw_temp as select account_id,account_lid, account_pwd," . "account_firstname,account_lastname,account_lastlogin,account_lastloginfrom" - . "account_lastpwd_change,account_status from phpgw_accounts",__LINE__,__FILE__); + . "account_lastpwd_change,account_status from accounts",__LINE__,__FILE__); $sql = "create table phpgw_accounts ( account_id serial, account_lid varchar(25) NOT NULL, @@ -921,7 +920,8 @@ $phpgw_setup->db->query($sql); $phpgw_setup->db->query("insert into phpgw_accounts select * from phpgw_temp",__LINE__,__FILE__); - $phpgw_setup->db->query("drop table phpgw_accounts",__LINE__,__FILE__); + $phpgw_setup->db->query("drop table phpgw_temp",__LINE__,__FILE__); + $phpgw_setup->db->query("alter table accounts rename phpgw_accounts",__LINE__,__FILE__); $phpgw_info["setup"]["currentver"]["phpgwapi"] = "0.9.10pre4"; }