Removed profiles table

This commit is contained in:
jengo 2001-05-03 04:59:00 +00:00
parent efa2d7dede
commit 5c8c881a11
6 changed files with 22 additions and 29 deletions

View File

@ -92,19 +92,6 @@
li int,
lo varchar(255)
)";
$phpgw_setup->db->query($sql);
// Note: This table will be removed durring 0.9.11
$sql = "CREATE TABLE profiles (
con int(11) DEFAULT '0' NOT NULL auto_increment,
owner varchar(20),
title varchar(255),
phone_number varchar(255),
comments text,
picture_format varchar(255),
picture blob,
PRIMARY KEY (con)
)";
$phpgw_setup->db->query($sql);
$sql = "CREATE TABLE phpgw_addressbook (

View File

@ -1650,6 +1650,16 @@
$phpgw_info['setup']['currentver']['phpgwapi'] = '0.9.11.008';
}
$test[] = '0.9.11.008';
function upgrade0_9_11_008()
{
global $phpgw_info,$phpgw_setup;
$phpgw_setup->db->query("drop table profiles",__LINE__,__TABLE__);
$phpgw_info['setup']['currentver']['phpgwapi'] = '0.9.11.009';
}
reset ($test);
while (list ($key, $value) = each ($test)){
if ($phpgw_info["setup"]["currentver"]["phpgwapi"] == $value) {

View File

@ -32,9 +32,6 @@
$phpgw_setup->db->query("DROP TABLE phpgw_hooks");
$phpgw_setup->db->query("drop sequence phpgw_hooks_hook_id_seq");
$phpgw_setup->db->query("DROP TABLE profiles");
$phpgw_setup->db->query("drop sequence profiles_con_seq");
$phpgw_setup->db->query("DROP TABLE phpgw_addressbook");
$phpgw_setup->db->query("DROP TABLE phpgw_addressbook_extra");
$phpgw_setup->db->query("drop sequence phpgw_addressbook_id_seq");

View File

@ -91,18 +91,6 @@
li int,
lo varchar(255)
)";
$phpgw_setup->db->query($sql);
// Note: This table will be removed durring 0.9.11
$sql = "CREATE TABLE profiles (
con serial,
owner varchar(20),
title varchar(255),
phone_number varchar(255),
comments text,
picture_format varchar(255),
picture text
)";
$phpgw_setup->db->query($sql);
$sql = "CREATE TABLE phpgw_addressbook(

View File

@ -2169,6 +2169,17 @@
$phpgw_info['setup']['currentver']['phpgwapi'] = '0.9.11.008';
}
$test[] = '0.9.11.008';
function upgrade0_9_11_008()
{
global $phpgw_info,$phpgw_setup;
$phpgw_setup->db->query("drop table profiles",__LINE__,__TABLE__);
$phpgw_setup->db->query("drop sequence profiles_con_seq",__LINE__,__TABLE__);
$phpgw_info['setup']['currentver']['phpgwapi'] = '0.9.11.009';
}
reset ($test);
while (list ($key, $value) = each ($test)){
if ($phpgw_info["setup"]["currentver"]["phpgwapi"] == $value) {

View File

@ -11,5 +11,5 @@
/* $Id$ */
$phpgw_info['server']['versions']['phpgwapi'] = '0.9.11.008';
$phpgw_info['server']['versions']['phpgwapi'] = '0.9.11.009';
$phpgw_info['server']['versions']['current_header'] = '1.11';