From d6da60e4f81a4327a41a8f638c1b8b419da7ba86 Mon Sep 17 00:00:00 2001 From: Miles Lott Date: Fri, 18 May 2001 17:26:35 +0000 Subject: [PATCH] Update current --- addressbook/setup/tables_baseline.inc.php | 50 +++++++-------- addressbook/setup/tables_current.inc.php | 74 +++++++++++++++++++++++ 2 files changed, 99 insertions(+), 25 deletions(-) diff --git a/addressbook/setup/tables_baseline.inc.php b/addressbook/setup/tables_baseline.inc.php index 2f7c157893..1c29bd4740 100644 --- a/addressbook/setup/tables_baseline.inc.php +++ b/addressbook/setup/tables_baseline.inc.php @@ -12,32 +12,32 @@ /* $Id$ */ $phpgw_baseline = array( - "addressbook" => array( - "fd" => array( - "ab_id" => array("type" => "auto", "nullable" => false), - "ab_owner" => array("type" => "varchar", "precision" => 25), - "ab_access" => array("type" => "varchar", "precision" => 10), - "ab_firstname" => array("type" => "varchar", "precision" => 255), - "ab_lastname" => array("type" => "varchar", "precision" => 255), - "ab_email" => array("type" => "varchar", "precision" => 255), - "ab_hphone" => array("type" => "varchar", "precision" => 255), - "ab_wphone" => array("type" => "varchar", "precision" => 255), - "ab_fax" => array("type" => "varchar", "precision" => 255), - "ab_pager" => array("type" => "varchar", "precision" => 255), - "ab_mphone" => array("type" => "varchar", "precision" => 255), - "ab_ophone" => array("type" => "varchar", "precision" => 255), - "ab_street" => array("type" => "varchar", "precision" => 255), - "ab_city" => array("type" => "varchar", "precision" => 255), - "ab_state" => array("type" => "varchar", "precision" => 255), - "ab_zip" => array("type" => "varchar", "precision" => 255), - "ab_bday" => array("type" => "varchar", "precision" => 255), - "ab_notes" => array("type" => "text"), - "ab_company" => array("type" => "varchar", "precision" => 255), + 'addressbook' => array( + 'fd' => array( + 'ab_id' => array('type' => 'auto', 'nullable' => false), + 'ab_owner' => array('type' => 'varchar', 'precision' => 25), + 'ab_access' => array('type' => 'varchar', 'precision' => 10), + 'ab_firstname' => array('type' => 'varchar', 'precision' => 255), + 'ab_lastname' => array('type' => 'varchar', 'precision' => 255), + 'ab_email' => array('type' => 'varchar', 'precision' => 255), + 'ab_hphone' => array('type' => 'varchar', 'precision' => 255), + 'ab_wphone' => array('type' => 'varchar', 'precision' => 255), + 'ab_fax' => array('type' => 'varchar', 'precision' => 255), + 'ab_pager' => array('type' => 'varchar', 'precision' => 255), + 'ab_mphone' => array('type' => 'varchar', 'precision' => 255), + 'ab_ophone' => array('type' => 'varchar', 'precision' => 255), + 'ab_street' => array('type' => 'varchar', 'precision' => 255), + 'ab_city' => array('type' => 'varchar', 'precision' => 255), + 'ab_state' => array('type' => 'varchar', 'precision' => 255), + 'ab_zip' => array('type' => 'varchar', 'precision' => 255), + 'ab_bday' => array('type' => 'varchar', 'precision' => 255), + 'ab_notes' => array('type' => 'text'), + 'ab_company' => array('type' => 'varchar', 'precision' => 255), ), - "pk" => array("ab_id"), - "fk" => array(), - "ix" => array(), - "uc" => array() + 'pk' => array('ab_id'), + 'fk' => array(), + 'ix' => array(), + 'uc' => array() ) ); ?> diff --git a/addressbook/setup/tables_current.inc.php b/addressbook/setup/tables_current.inc.php index 7b781f2859..61ca199d0a 100644 --- a/addressbook/setup/tables_current.inc.php +++ b/addressbook/setup/tables_current.inc.php @@ -16,4 +16,78 @@ $phpgw_info['setup']['currentver']['addressbook'] = '0.9.10'; + $phpgw_baseline = array( + 'phpgw_addressbook' => array( + 'fd' => array( + 'id' => array('type' => 'auto', 'nullable' => false), + 'lid' => array('type' => 'varchar', 'precision' => 32), + 'tid' => array('type' => 'char', 'precision' => 1), + 'owner' => array('type' => 'int', 'precision' => 8), + 'access' => array('type' => 'char', 'precision' => 7), + 'cat_id' => array('type' => 'varchar', 'precision' => 32), + 'fn' => array('type' => 'varchar', 'precision' => 64), + 'n_family' => array('type' => 'varchar', 'precision' => 64), + 'n_given' => array('type' => 'varchar', 'precision' => 64), + 'n_middle' => array('type' => 'varchar', 'precision' => 64), + 'n_prefix' => array('type' => 'varchar', 'precision' => 64), + 'n_suffix' => array('type' => 'varchar', 'precision' => 64), + 'sound' => array('type' => 'varchar', 'precision' => 64), + 'bday' => array('type' => 'varchar', 'precision' => 32), + 'note' => array('type' => 'text'), + 'tz' => array('type' => 'varchar', 'precision' => 8), + 'geo' => array('type' => 'varchar', 'precision' => 32, + 'url' => array('type' => 'varchar', 'precision' => 128), + 'pubkey' => array('type' => 'text'), + 'org_name' => array('type' => 'varchar', 'precision' => 64), + 'org_unit' => array('type' => 'varchar', 'precision' => 64), + 'title' => array('type' => 'varchar', 'precision' => 64), + 'adr_one_street' => array('type' => 'varchar', 'precision' => 64), + 'adr_one_locality' => array('type' => 'varchar', 'precision' => 64), + 'adr_one_region' => array('type' => 'varchar', 'precision' => 64), + 'adr_one_postalcode' => array('type' => 'varchar', 'precision' => 64), + 'adr_one_countryname' => array('type' => 'varchar', 'precision' => 64), + 'adr_one_type' => array('type' => 'varchar', 'precision' => 32), + 'label' => array('type' => 'text'), + 'adr_two_street' => array('type' => 'varchar', 'precision' => 64), + 'adr_two_locality' => array('type' => 'varchar', 'precision' => 64), + 'adr_two_region' => array('type' => 'varchar', 'precision' => 64), + 'adr_two_postalcode' => array('type' => 'varchar', 'precision' => 64), + 'adr_two_countryname' => array('type' => 'varchar', 'precision' => 64), + 'adr_two_type' => array('type' => 'varchar', 'precision' => 32), + 'tel_work' => array('type' => 'varchar', 'precision' => 40, 'default' => '+1 (000) 000-0000', 'nullable' => false), + 'tel_home' => array('type' => 'varchar', 'precision' => 40, 'default' => '+1 (000) 000-0000', 'nullable' => false), + 'tel_voice' => array('type' => 'varchar', 'precision' => 40, 'default' => '+1 (000) 000-0000', 'nullable' => false), + 'tel_fax' => array('type' => 'varchar', 'precision' => 40, 'default' => '+1 (000) 000-0000', 'nullable' => false), + 'tel_msg' => array('type' => 'varchar', 'precision' => 40, 'default' => '+1 (000) 000-0000', 'nullable' => false), + 'tel_cell' => array('type' => 'varchar', 'precision' => 40, 'default' => '+1 (000) 000-0000', 'nullable' => false), + 'tel_pager' => array('type' => 'varchar', 'precision' => 40, 'default' => '+1 (000) 000-0000', 'nullable' => false), + 'tel_bbs' => array('type' => 'varchar', 'precision' => 40, 'default' => '+1 (000) 000-0000', 'nullable' => false), + 'tel_modem' => array('type' => 'varchar', 'precision' => 40, 'default' => '+1 (000) 000-0000', 'nullable' => false), + 'tel_car' => array('type' => 'varchar', 'precision' => 40, 'default' => '+1 (000) 000-0000', 'nullable' => false), + 'tel_isdn' => array('type' => 'varchar', 'precision' => 40, 'default' => '+1 (000) 000-0000', 'nullable' => false), + 'tel_video' => array('type' => 'varchar', 'precision' => 40, 'default' => '+1 (000) 000-0000', 'nullable' => false), + 'tel_prefer' => array('type' => 'varchar', 'precision' => 32), + 'email' => array('type' => 'varchar', 'precision' => 64), + 'email_type' => array('type' => 'varchar', 'precision' => 32, 'default' => 'INTERNET', 'nullable' => false), + 'email_home' => array('type' => 'varchar', 'precision' => 64), + 'email_home_type' => array('type' => 'varchar', 'precision' => 32, 'default' => 'INTERNET', 'nullable' => false), + ), + 'pk' => array('id'), + 'fk' => array(), + 'ix' => array(), + 'uc' => array('id') + ), + 'phpgw_addressbook_extra' => array( + 'fd' => array( + 'contact_id' => array('type' => 'int', 'precision' => 11), + 'contact_owner' => array('type' => 'int', 'precision' => 11), + 'contact_name' => array('type' => 'varchar', 'precision' => 255), + 'contact_value' => array('type' => 'text') + ), + 'pk' => array('contact_id'), + 'fk' => array(), + 'ix' => array(), + 'uc' => array() + ) + ); ?>