Change booleans to char(1) in phpgw_addressbook

This commit is contained in:
Miles Lott 2001-03-01 01:16:08 +00:00
parent af02fc4df7
commit afba5fff8e

View File

@ -125,40 +125,40 @@
adr_region varchar(32),
adr_postalcode varchar(32),
adr_countryname varchar(32),
adr_work boolean DEFAULT 'n' NOT NULL,
adr_home boolean DEFAULT 'n' NOT NULL,
adr_parcel boolean DEFAULT 'n' NOT NULL,
adr_postal boolean DEFAULT 'n' 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 boolean DEFAULT 'n' NOT NULL,
a_tel_home boolean DEFAULT 'n' NOT NULL,
a_tel_voice boolean DEFAULT 'n' NOT NULL,
a_tel_msg boolean DEFAULT 'n' NOT NULL,
a_tel_fax boolean DEFAULT 'n' NOT NULL,
a_tel_prefer boolean DEFAULT 'n' 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 boolean DEFAULT 'n' NOT NULL,
b_tel_home boolean DEFAULT 'n' NOT NULL,
b_tel_voice boolean DEFAULT 'n' NOT NULL,
b_tel_msg boolean DEFAULT 'n' NOT NULL,
b_tel_fax boolean DEFAULT 'n' NOT NULL,
b_tel_prefer boolean DEFAULT 'n' 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 boolean DEFAULT 'n' NOT NULL,
c_tel_home boolean DEFAULT 'n' NOT NULL,
c_tel_voice boolean DEFAULT 'n' NOT NULL,
c_tel_msg boolean DEFAULT 'n' NOT NULL,
c_tel_fax boolean DEFAULT 'n' NOT NULL,
c_tel_prefer boolean DEFAULT 'n' 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 text check(d_emailtype in('INTERNET','CompuServe','AOL','Prodigy','eWorld','AppleLink','AppleTalk','PowerShare','IBMMail','ATTMail','MCIMail','X.400','TLX')) DEFAULT 'INTERNET' NOT NULL,
d_email varchar(64),
d_email_work boolean DEFAULT 'n' NOT NULL,
d_email_home boolean DEFAULT 'n' NOT NULL,
d_email_work char(1) DEFAULT 'n' NOT NULL,
d_email_home char(1) DEFAULT 'n' NOT NULL,
UNIQUE (id)
)";