forked from extern/egroupware
Add servers table for remotes
This commit is contained in:
parent
f93684a40f
commit
49492cab51
@ -14,10 +14,15 @@
|
|||||||
/* Basic information about this app */
|
/* Basic information about this app */
|
||||||
$setup_info['addressbook']['name'] = 'addressbook';
|
$setup_info['addressbook']['name'] = 'addressbook';
|
||||||
$setup_info['addressbook']['title'] = 'Addressbook';
|
$setup_info['addressbook']['title'] = 'Addressbook';
|
||||||
$setup_info['addressbook']['version'] = '0.9.13.002';
|
$setup_info['addressbook']['version'] = '0.9.13.003';
|
||||||
$setup_info['addressbook']['app_order'] = 4;
|
$setup_info['addressbook']['app_order'] = 4;
|
||||||
$setup_info['addressbook']['enable'] = 1;
|
$setup_info['addressbook']['enable'] = 1;
|
||||||
|
|
||||||
|
$setup_info['addressbook']['author'] = 'Joseph Engo, Miles Lott';
|
||||||
|
$setup_info['addressbook']['note'] = 'The phpgwapi manages contact data. Addressbook manages servers for its remote capability.';
|
||||||
|
/* Tables */
|
||||||
|
$setup_info['addressbook']['tables'][] = 'phpgw_addressbook_servers';
|
||||||
|
|
||||||
/* The hooks this app includes, needed for hooks registration */
|
/* The hooks this app includes, needed for hooks registration */
|
||||||
$setup_info['addressbook']['hooks'][] = 'about';
|
$setup_info['addressbook']['hooks'][] = 'about';
|
||||||
$setup_info['addressbook']['hooks'][] = 'admin';
|
$setup_info['addressbook']['hooks'][] = 'admin';
|
||||||
@ -32,6 +37,6 @@
|
|||||||
/* Dependencies for this app to work */
|
/* Dependencies for this app to work */
|
||||||
$setup_info['addressbook']['depends'][] = array(
|
$setup_info['addressbook']['depends'][] = array(
|
||||||
'appname' => 'phpgwapi',
|
'appname' => 'phpgwapi',
|
||||||
'versions' => Array('0.9.13', '0.9.14', '0.9.15')
|
'versions' => Array('0.9.15', '0.9.16')
|
||||||
);
|
);
|
||||||
?>
|
?>
|
||||||
|
14
addressbook/setup/tables_baseline.inc.php
Normal file
14
addressbook/setup/tables_baseline.inc.php
Normal file
@ -0,0 +1,14 @@
|
|||||||
|
<?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$ */
|
||||||
|
|
||||||
|
$phpgw_baseline = array();
|
||||||
|
?>
|
28
addressbook/setup/tables_current.inc.php
Normal file
28
addressbook/setup/tables_current.inc.php
Normal file
@ -0,0 +1,28 @@
|
|||||||
|
<?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(
|
||||||
|
'phpgw_addressbook_servers' => array(
|
||||||
|
'fd' => array(
|
||||||
|
'name' => array('type' => 'varchar', 'precision' => 64, 'nullable' => False),
|
||||||
|
'basedn' => array('type' => 'varchar', 'precision' => 255, 'nullable' => True),
|
||||||
|
'search' => array('type' => 'varchar', 'precision' => 32, 'nullable' => True),
|
||||||
|
'attrs' => array('type' => 'varchar', 'precision' => 255, 'nullable' => True),
|
||||||
|
'enabled' => array('type' => 'int', 'precision' => 4)
|
||||||
|
),
|
||||||
|
'pk' => array('name'),
|
||||||
|
'fk' => array(),
|
||||||
|
'ix' => array(),
|
||||||
|
'uc' => array()
|
||||||
|
)
|
||||||
|
);
|
36
addressbook/setup/tables_update.inc.php
Normal file
36
addressbook/setup/tables_update.inc.php
Normal file
@ -0,0 +1,36 @@
|
|||||||
|
<?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$ */
|
||||||
|
|
||||||
|
$test[] = '0.9.13.002';
|
||||||
|
function addressbook_upgrade0_9_13_002()
|
||||||
|
{
|
||||||
|
$GLOBALS['phpgw_setup']->oProc->CreateTable(
|
||||||
|
'phpgw_addressbook_servers', array(
|
||||||
|
'fd' => array(
|
||||||
|
'name' => array('type' => 'varchar', 'precision' => 64, 'nullable' => False),
|
||||||
|
'basedn' => array('type' => 'varchar', 'precision' => 255, 'nullable' => True),
|
||||||
|
'search' => array('type' => 'varchar', 'precision' => 32, 'nullable' => True),
|
||||||
|
'attrs' => array('type' => 'varchar', 'precision' => 255, 'nullable' => True),
|
||||||
|
'enabled' => array('type' => 'int', 'precision' => 4)
|
||||||
|
),
|
||||||
|
'pk' => array('name'),
|
||||||
|
'fk' => array(),
|
||||||
|
'ix' => array(),
|
||||||
|
'uc' => array()
|
||||||
|
)
|
||||||
|
);
|
||||||
|
|
||||||
|
$GLOBALS['setup_info']['addressbook']['currentver'] = '0.9.13.003';
|
||||||
|
return $GLOBALS['setup_info']['addressbook']['currentver'];
|
||||||
|
}
|
||||||
|
?>
|
Loading…
Reference in New Issue
Block a user