Add servers table for remotes

This commit is contained in:
Miles Lott 2002-03-14 14:25:12 +00:00
parent f93684a40f
commit 49492cab51
4 changed files with 85 additions and 2 deletions

View File

@ -14,10 +14,15 @@
/* Basic information about this app */
$setup_info['addressbook']['name'] = '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']['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 */
$setup_info['addressbook']['hooks'][] = 'about';
$setup_info['addressbook']['hooks'][] = 'admin';
@ -32,6 +37,6 @@
/* Dependencies for this app to work */
$setup_info['addressbook']['depends'][] = array(
'appname' => 'phpgwapi',
'versions' => Array('0.9.13', '0.9.14', '0.9.15')
'versions' => Array('0.9.15', '0.9.16')
);
?>

View 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();
?>

View 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()
)
);

View 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'];
}
?>