mirror of
https://github.com/EGroupware/egroupware.git
synced 2024-12-03 13:25:05 +01:00
Change enums to char(1) for phpgw_addressbook
This commit is contained in:
parent
afba5fff8e
commit
e10efb15b7
@ -127,40 +127,40 @@
|
||||
adr_region varchar(32),
|
||||
adr_postalcode varchar(32),
|
||||
adr_countryname varchar(32),
|
||||
adr_work enum('n','y') NOT NULL,
|
||||
adr_home enum('n','y') NOT NULL,
|
||||
adr_parcel enum('n','y') NOT NULL,
|
||||
adr_postal enum('n','y') NOT NULL,
|
||||
adr_work char(1) DEFAULT 'n' NOT NULL,
|
||||
adr_home char(1) DEFAULT 'n' NOT NULL,
|
||||
adr_parcel char(1) DEFAULT 'n' NOT NULL,
|
||||
adr_postal char(1) DEFAULT 'n' NOT NULL,
|
||||
tz varchar(8),
|
||||
geo varchar(32),
|
||||
url varchar(128),
|
||||
bday varchar(32),
|
||||
note text,
|
||||
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,
|
||||
a_tel_work char(1) DEFAULT 'n' NOT NULL,
|
||||
a_tel_home char(1) DEFAULT 'n' NOT NULL,
|
||||
a_tel_voice char(1) DEFAULT 'n' NOT NULL,
|
||||
a_tel_msg char(1) DEFAULT 'n' NOT NULL,
|
||||
a_tel_fax char(1) DEFAULT 'n' NOT NULL,
|
||||
a_tel_prefer char(1) DEFAULT 'n' 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,
|
||||
b_tel_work char(1) DEFAULT 'n' NOT NULL,
|
||||
b_tel_home char(1) DEFAULT 'n' NOT NULL,
|
||||
b_tel_voice char(1) DEFAULT 'n' NOT NULL,
|
||||
b_tel_msg char(1) DEFAULT 'n' NOT NULL,
|
||||
b_tel_fax char(1) DEFAULT 'n' NOT NULL,
|
||||
b_tel_prefer char(1) DEFAULT 'n' 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,
|
||||
c_tel_msg enum('n','y') NOT NULL,
|
||||
c_tel_fax enum('n','y') NOT NULL,
|
||||
c_tel_prefer enum('n','y') NOT NULL,
|
||||
c_tel_work char(1) DEFAULT 'n' NOT NULL,
|
||||
c_tel_home char(1) DEFAULT 'n' NOT NULL,
|
||||
c_tel_voice char(1) DEFAULT 'n' NOT NULL,
|
||||
c_tel_msg char(1) DEFAULT 'n' NOT NULL,
|
||||
c_tel_fax char(1) DEFAULT 'n' NOT NULL,
|
||||
c_tel_prefer char(1) DEFAULT 'n' NOT NULL,
|
||||
d_emailtype enum('INTERNET','CompuServe','AOL','Prodigy','eWorld','AppleLink','AppleTalk','PowerShare','IBMMail','ATTMail','MCIMail','X.400','TLX') NOT NULL,
|
||||
d_email varchar(64),
|
||||
d_email_work enum('n','y') NOT NULL,
|
||||
d_email_home enum('n','y') NOT NULL,
|
||||
d_email_work char(1) DEFAULT 'n' NOT NULL,
|
||||
d_email_home char(1) DEFAULT 'n' NOT NULL
|
||||
UNIQUE (id)
|
||||
)";
|
||||
$phpgw_setup->db->query($sql);
|
||||
|
Loading…
Reference in New Issue
Block a user