mirror of
https://github.com/EGroupware/egroupware.git
synced 2024-11-22 16:03:47 +01:00
Removed profiles table
This commit is contained in:
parent
efa2d7dede
commit
5c8c881a11
@ -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 (
|
||||
|
@ -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) {
|
||||
|
@ -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");
|
||||
|
@ -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(
|
||||
|
@ -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) {
|
||||
|
@ -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';
|
||||
|
Loading…
Reference in New Issue
Block a user