forked from extern/egroupware
All table info is moved to api
This commit is contained in:
parent
38a4587a2d
commit
5da1b9fb1c
@ -18,12 +18,6 @@
|
||||
$setup_info['addressbook']['app_order'] = 4;
|
||||
$setup_info['addressbook']['enable'] = 1;
|
||||
|
||||
/* The tables this app creates */
|
||||
$setup_info['addressbook']['tables'] = array(
|
||||
'phpgw_addressbook',
|
||||
'phpgw_addressbook_extra'
|
||||
);
|
||||
|
||||
/* The hooks this app includes, needed for hooks registration */
|
||||
$setup_info['addressbook']['hooks'][] = 'preferences';
|
||||
$setup_info['addressbook']['hooks'][] = 'admin';
|
||||
|
@ -1,43 +0,0 @@
|
||||
<?php
|
||||
/**************************************************************************\
|
||||
* phpGroupWare *
|
||||
* http://www.phpgroupware.org *
|
||||
* -------------------------------------------- *
|
||||
* This program is free software; you can redistribute it and/or modify it *
|
||||
* under the terms of the GNU General Public License as published by the *
|
||||
* Free Software Foundation; either version 2 of the License, or (at your *
|
||||
* option) any later version. *
|
||||
\**************************************************************************/
|
||||
|
||||
/* $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),
|
||||
),
|
||||
'pk' => array('ab_id'),
|
||||
'fk' => array(),
|
||||
'ix' => array(),
|
||||
'uc' => array()
|
||||
)
|
||||
);
|
||||
?>
|
@ -1,92 +0,0 @@
|
||||
<?php
|
||||
/**************************************************************************\
|
||||
* phpGroupWare - Setup *
|
||||
* http://www.phpgroupware.org *
|
||||
* -------------------------------------------- *
|
||||
* This program is free software; you can redistribute it and/or modify it *
|
||||
* under the terms of the GNU General Public License as published by the *
|
||||
* Free Software Foundation; either version 2 of the License, or (at your *
|
||||
* option) any later version. *
|
||||
\**************************************************************************/
|
||||
|
||||
/**************************************************************************\
|
||||
* This file should be generated for you. It should never be edited by hand *
|
||||
\**************************************************************************/
|
||||
|
||||
/* $Id$ */
|
||||
|
||||
$phpgw_baseline = array(
|
||||
'phpgw_addressbook' => array(
|
||||
'fd' => array(
|
||||
'id' => array('type' => 'auto','nullable' => False),
|
||||
'lid' => array('type' => 'varchar', 'precision' => 32,'nullable' => True),
|
||||
'tid' => array('type' => 'char', 'precision' => 1,'nullable' => True),
|
||||
'owner' => array('type' => 'int', 'precision' => 8,'nullable' => True),
|
||||
'access' => array('type' => 'varchar', 'precision' => 7,'nullable' => True),
|
||||
'cat_id' => array('type' => 'varchar', 'precision' => 32,'nullable' => True),
|
||||
'fn' => array('type' => 'varchar', 'precision' => 64,'nullable' => True),
|
||||
'n_family' => array('type' => 'varchar', 'precision' => 64,'nullable' => True),
|
||||
'n_given' => array('type' => 'varchar', 'precision' => 64,'nullable' => True),
|
||||
'n_middle' => array('type' => 'varchar', 'precision' => 64,'nullable' => True),
|
||||
'n_prefix' => array('type' => 'varchar', 'precision' => 64,'nullable' => True),
|
||||
'n_suffix' => array('type' => 'varchar', 'precision' => 64,'nullable' => True),
|
||||
'sound' => array('type' => 'varchar', 'precision' => 64,'nullable' => True),
|
||||
'bday' => array('type' => 'varchar', 'precision' => 32,'nullable' => True),
|
||||
'note' => array('type' => 'text','nullable' => True),
|
||||
'tz' => array('type' => 'varchar', 'precision' => 8,'nullable' => True),
|
||||
'geo' => array('type' => 'varchar', 'precision' => 32,'nullable' => True),
|
||||
'url' => array('type' => 'varchar', 'precision' => 128,'nullable' => True),
|
||||
'pubkey' => array('type' => 'text','nullable' => True),
|
||||
'org_name' => array('type' => 'varchar', 'precision' => 64,'nullable' => True),
|
||||
'org_unit' => array('type' => 'varchar', 'precision' => 64,'nullable' => True),
|
||||
'title' => array('type' => 'varchar', 'precision' => 64,'nullable' => True),
|
||||
'adr_one_street' => array('type' => 'varchar', 'precision' => 64,'nullable' => True),
|
||||
'adr_one_locality' => array('type' => 'varchar', 'precision' => 64,'nullable' => True),
|
||||
'adr_one_region' => array('type' => 'varchar', 'precision' => 64,'nullable' => True),
|
||||
'adr_one_postalcode' => array('type' => 'varchar', 'precision' => 64,'nullable' => True),
|
||||
'adr_one_countryname' => array('type' => 'varchar', 'precision' => 64,'nullable' => True),
|
||||
'adr_one_type' => array('type' => 'varchar', 'precision' => 32,'nullable' => True),
|
||||
'label' => array('type' => 'text','nullable' => True),
|
||||
'adr_two_street' => array('type' => 'varchar', 'precision' => 64,'nullable' => True),
|
||||
'adr_two_locality' => array('type' => 'varchar', 'precision' => 64,'nullable' => True),
|
||||
'adr_two_region' => array('type' => 'varchar', 'precision' => 64,'nullable' => True),
|
||||
'adr_two_postalcode' => array('type' => 'varchar', 'precision' => 64,'nullable' => True),
|
||||
'adr_two_countryname' => array('type' => 'varchar', 'precision' => 64,'nullable' => True),
|
||||
'adr_two_type' => array('type' => 'varchar', 'precision' => 32,'nullable' => True),
|
||||
'tel_work' => array('type' => 'varchar', 'precision' => 40,'nullable' => False,'default' => '+1 (000) 000-0000'),
|
||||
'tel_home' => array('type' => 'varchar', 'precision' => 40,'nullable' => False,'default' => '+1 (000) 000-0000'),
|
||||
'tel_voice' => array('type' => 'varchar', 'precision' => 40,'nullable' => False,'default' => '+1 (000) 000-0000'),
|
||||
'tel_fax' => array('type' => 'varchar', 'precision' => 40,'nullable' => False,'default' => '+1 (000) 000-0000'),
|
||||
'tel_msg' => array('type' => 'varchar', 'precision' => 40,'nullable' => False,'default' => '+1 (000) 000-0000'),
|
||||
'tel_cell' => array('type' => 'varchar', 'precision' => 40,'nullable' => False,'default' => '+1 (000) 000-0000'),
|
||||
'tel_pager' => array('type' => 'varchar', 'precision' => 40,'nullable' => False,'default' => '+1 (000) 000-0000'),
|
||||
'tel_bbs' => array('type' => 'varchar', 'precision' => 40,'nullable' => False,'default' => '+1 (000) 000-0000'),
|
||||
'tel_modem' => array('type' => 'varchar', 'precision' => 40,'nullable' => False,'default' => '+1 (000) 000-0000'),
|
||||
'tel_car' => array('type' => 'varchar', 'precision' => 40,'nullable' => False,'default' => '+1 (000) 000-0000'),
|
||||
'tel_isdn' => array('type' => 'varchar', 'precision' => 40,'nullable' => False,'default' => '+1 (000) 000-0000'),
|
||||
'tel_video' => array('type' => 'varchar', 'precision' => 40,'nullable' => False,'default' => '+1 (000) 000-0000'),
|
||||
'tel_prefer' => array('type' => 'varchar', 'precision' => 32,'nullable' => True),
|
||||
'email' => array('type' => 'varchar', 'precision' => 64,'nullable' => True),
|
||||
'email_type' => array('type' => 'varchar', 'precision' => 32,'nullable' => False,'default' => 'INTERNET'),
|
||||
'email_home' => array('type' => 'varchar', 'precision' => 64,'nullable' => True),
|
||||
'email_home_type' => array('type' => 'varchar', 'precision' => 32,'nullable' => False,'default' => 'INTERNET')
|
||||
),
|
||||
'pk' => array('id'),
|
||||
'fk' => array(),
|
||||
'ix' => array(),
|
||||
'uc' => array()
|
||||
),
|
||||
'phpgw_addressbook_extra' => array(
|
||||
'fd' => array(
|
||||
'contact_id' => array('type' => 'int', 'precision' => 4, 'nullable' => True),
|
||||
'contact_owner' => array('type' => 'int', 'precision' => 8,'nullable' => True),
|
||||
'contact_name' => array('type' => 'varchar', 'precision' => 255,'nullable' => True),
|
||||
'contact_value' => array('type' => 'text','nullable' => True)
|
||||
),
|
||||
'pk' => array(),
|
||||
'fk' => array(),
|
||||
'ix' => array(),
|
||||
'uc' => array()
|
||||
)
|
||||
);
|
||||
?>
|
File diff suppressed because it is too large
Load Diff
@ -1,44 +0,0 @@
|
||||
<?php
|
||||
/**************************************************************************\
|
||||
* phpGroupWare - Setup *
|
||||
* http://www.phpgroupware.org *
|
||||
* -------------------------------------------- *
|
||||
* This program is free software; you can redistribute it and/or modify it *
|
||||
* under the terms of the GNU General Public License as published by the *
|
||||
* Free Software Foundation; either version 2 of the License, or (at your *
|
||||
* option) any later version. *
|
||||
\**************************************************************************/
|
||||
|
||||
/* $Id$ */
|
||||
|
||||
$oProc->query("INSERT INTO addressbook (
|
||||
ab_owner,ab_access,ab_firstname,ab_lastname,
|
||||
ab_email,ab_hphone,ab_wphone,ab_fax,ab_pager,
|
||||
ab_mphone,ab_ophone,ab_street,ab_city,ab_state,ab_zip,
|
||||
ab_bday,ab_notes,ab_company)
|
||||
VALUES(500,'private','John','Doe',
|
||||
'jdoe@yahoo.com','212-555-5555','212-555-4444','212-555-4445','212-555-5556',
|
||||
'212-555-5557','212-555-5558','1234 Elm','Anytown','New York','01010',
|
||||
'12/25/1970','This is a test note\nfor verification','ClearRiver Tech.')");
|
||||
|
||||
$oProc->query("INSERT INTO addressbook (
|
||||
ab_owner,ab_access,ab_firstname,ab_lastname,
|
||||
ab_email,ab_hphone,ab_wphone,ab_fax,ab_pager,
|
||||
ab_mphone,ab_ophone,ab_street,ab_city,ab_state,ab_zip,
|
||||
ab_bday,ab_notes,ab_company)
|
||||
VALUES(502,'public','Jane','Smith',
|
||||
'jane.smith@motherearth.org','212-555-5555','212-555-4444','212-555-4445','212-555-5556',
|
||||
'212-555-5557','212-555-5558','1313 Mockingbird Ln.','Hooterville','Kentucky','54874',
|
||||
'01/01/1983','This is a test note\nfor verification','Jasper Automotive')");
|
||||
|
||||
$oProc->query("INSERT INTO addressbook (
|
||||
ab_owner,ab_access,ab_firstname,ab_lastname,
|
||||
ab_email,ab_hphone,ab_wphone,ab_fax,ab_pager,
|
||||
ab_mphone,ab_ophone,ab_street,ab_city,ab_state,ab_zip,
|
||||
ab_bday,ab_notes,ab_company)
|
||||
VALUES(1,'private','Steven','Wright',
|
||||
'jdoe@yahoo.com','212-555-5555','212-555-4444','212-555-4445','212-555-5556',
|
||||
'212-555-5557','212-555-5558','321 Contact','Oiforgot','North Dakota','15421',
|
||||
'10/05/1955','This is a test note\nfor verification','Baubles and Beads')");
|
||||
|
||||
?>
|
Loading…
Reference in New Issue
Block a user