Add url and bday as stock fields

This commit is contained in:
Miles Lott 2001-02-27 00:28:56 +00:00
parent 03223c14eb
commit a7d339d799
2 changed files with 20 additions and 16 deletions

View File

@ -104,21 +104,21 @@
$sql = "CREATE TABLE phpgw_addressbook (
id int(8) PRIMARY KEY DEFAULT '0' NOT NULL auto_increment,
lid varchar(32),
tid char(1),
owner int(8),
fn varchar(64),
sound varchar(64),
id int(8) PRIMARY KEY DEFAULT '0' NOT NULL auto_increment,
lid varchar(32),
tid char(1),
owner int(8),
fn varchar(64),
sound varchar(64),
org_name varchar(64),
org_unit varchar(64),
title varchar(64),
title varchar(64),
n_family varchar(64),
n_given varchar(64),
n_middle varchar(64),
n_prefix varchar(64),
n_suffix varchar(64),
label text,
label text,
adr_poaddr varchar(64),
adr_extaddr varchar(64),
adr_street varchar(64),
@ -130,23 +130,25 @@
adr_home enum('n','y') NOT NULL,
adr_parcel enum('n','y') NOT NULL,
adr_postal enum('n','y') NOT NULL,
tz varchar(8),
geo varchar(32),
a_tel varchar(40) DEFAULT '+1 (000) 000-0000' NOT NULL,
tz varchar(8),
geo varchar(32),
url varchar(128),
bday varchar(32),
a_tel varchar(40) DEFAULT '+1 (000) 000-0000' NOT NULL,
a_tel_work enum('n','y') NOT NULL,
a_tel_home enum('n','y') NOT NULL,
a_tel_voice enum('n','y') NOT NULL,
a_tel_msg enum('n','y') NOT NULL,
a_tel_fax enum('n','y') NOT NULL,
a_tel_prefer enum('n','y') NOT NULL,
b_tel varchar(40) DEFAULT '+1 (000) 000-0000' NOT NULL,
b_tel varchar(40) DEFAULT '+1 (000) 000-0000' NOT NULL,
b_tel_work enum('n','y') NOT NULL,
b_tel_home enum('n','y') NOT NULL,
b_tel_voice enum('n','y') NOT NULL,
b_tel_msg enum('n','y') NOT NULL,
b_tel_fax enum('n','y') NOT NULL,
b_tel_prefer enum('n','y') NOT NULL,
c_tel varchar(40) DEFAULT '+1 (000) 000-0000' NOT NULL,
c_tel varchar(40) DEFAULT '+1 (000) 000-0000' NOT NULL,
c_tel_work enum('n','y') NOT NULL,
c_tel_home enum('n','y') NOT NULL,
c_tel_voice enum('n','y') NOT NULL,
@ -165,7 +167,7 @@
contact_id int(11),
contact_owner int(11),
contact_name varchar(255),
contact_value varchar(255)
contact_value text
)";
$phpgw_setup->db->query($sql);

View File

@ -130,6 +130,8 @@
adr_postal boolean DEFAULT 'n' NOT NULL,
tz varchar(8),
geo varchar(32),
url varchar(128),
bday varchar(32),
a_tel varchar(40) DEFAULT '+1 (000) 000-0000' NOT NULL,
a_tel_work boolean DEFAULT 'n' NOT NULL,
a_tel_home boolean DEFAULT 'n' NOT NULL,
@ -164,7 +166,7 @@
contact_id int,
contact_owner int,
contact_name varchar(255),
contact_value varchar(255)
contact_value text
)";
$phpgw_setup->db->query($sql);
@ -310,4 +312,4 @@
$phpgw_info['setup']['currentver']['phpgwapi'] = '0.9.10pre13';
$phpgw_info['setup']['oldver']['phpgwapi'] = $phpgw_info['setup']['currentver']['phpgwapi'];
update_version_table();
?>
?>