Update added to include peer server / interserver

This commit is contained in:
Miles Lott 2001-08-13 17:09:03 +00:00
parent bf0f19ef26
commit f1a562404b
3 changed files with 53 additions and 1 deletions

View File

@ -14,7 +14,7 @@
/* Basic information about this app */
$setup_info['phpgwapi']['name'] = 'phpgwapi';
$setup_info['phpgwapi']['title'] = 'phpgwapi';
$setup_info['phpgwapi']['version'] = '0.9.13.009';
$setup_info['phpgwapi']['version'] = '0.9.13.010';
$setup_info['phpgwapi']['versions']['current_header'] = '1.17';
$setup_info['phpgwapi']['enable'] = 3;
$setup_info['phpgwapi']['app_order'] = 1;
@ -37,6 +37,7 @@
$setup_info['phpgwapi']['tables'][] = 'phpgw_addressbook_extra';
$setup_info['phpgwapi']['tables'][] = 'phpgw_log';
$setup_info['phpgwapi']['tables'][] = 'phpgw_log_msg';
$setup_info['phpgwapi']['tables'][] = 'phpgw_interserv';
/* Basic information about this app */
$setup_info['notifywindow']['name'] = 'notifywindow';

View File

@ -289,6 +289,26 @@
'fk' => array(),
'ix' => array(),
'uc' => array()
),
'phpgw_interserv' => array(
'fd' => array(
'server_id' => array('type' => 'auto'),
'server_name' => array('type' => 'varchar', 'precision' => 64, 'nullable' => True),
'server_host' => array('type' => 'varchar', 'precision' => 255, 'nullable' => True),
'server_url' => array('type' => 'varchar', 'precision' => 255, 'nullable' => True),
'trust_level' => array('type' => 'int', 'precision' => 4, 'nullable' => True),
'trust_rel' => array('type' => 'int', 'precision' => 4, 'nullable' => True),
'username' => array('type' => 'varchar', 'precision' => 64, 'nullable' => True),
'password' => array('type' => 'varchar', 'precision' => 255, 'nullable' => True),
'admin_name' => array('type' => 'varchar', 'precision' => 255, 'nullable' => True),
'admin_email' => array('type' => 'varchar', 'precision' => 255, 'nullable' => True),
'server_mode' => array('type' => 'varchar', 'precision' => 16, 'nullable' => False, 'default' => 'xmlrpc'),
'server_security' => array('type' => 'varchar', 'precision' => 16,'nullable' => True)
),
'pk' => array('server_id'),
'fk' => array(),
'ix' => array(),
'uc' => array()
)
);
?>

View File

@ -2047,4 +2047,35 @@
return $setup_info['phpgwapi']['currentver'];
}
$test[] = '0.9.13.009';
function phpgwapi_upgrade0_9_13_009()
{
global $setup_info, $phpgw_setup;
$phpgw_setup->oProc->CreateTable(
'phpgw_interserv', array(
'fd' => array(
'server_id' => array('type' => 'auto'),
'server_name' => array('type' => 'varchar', 'precision' => 64, 'nullable' => True),
'server_host' => array('type' => 'varchar', 'precision' => 255, 'nullable' => True),
'server_url' => array('type' => 'varchar', 'precision' => 255, 'nullable' => True),
'trust_level' => array('type' => 'int', 'precision' => 4, 'nullable' => True),
'trust_rel' => array('type' => 'int', 'precision' => 4, 'nullable' => True),
'username' => array('type' => 'varchar', 'precision' => 64, 'nullable' => True),
'password' => array('type' => 'varchar', 'precision' => 255, 'nullable' => True),
'admin_name' => array('type' => 'varchar', 'precision' => 255, 'nullable' => True),
'admin_email' => array('type' => 'varchar', 'precision' => 255, 'nullable' => True),
'server_mode' => array('type' => 'varchar', 'precision' => 16, 'nullable' => False, 'default' => 'xmlrpc'),
'server_security' => array('type' => 'varchar', 'precision' => 16,'nullable' => True)
),
'pk' => array('server_id'),
'fk' => array(),
'ix' => array(),
'uc' => array()
)
);
$setup_info['phpgwapi']['currentver'] = '0.9.13.010';
return $setup_info['phpgwapi']['currentver'];
}
?>