From f1a562404b81e465f32862bf307da6edbbf9e3c3 Mon Sep 17 00:00:00 2001 From: Miles Lott Date: Mon, 13 Aug 2001 17:09:03 +0000 Subject: [PATCH] Update added to include peer server / interserver --- phpgwapi/setup/setup.inc.php | 3 ++- phpgwapi/setup/tables_current.inc.php | 20 +++++++++++++++++ phpgwapi/setup/tables_update.inc.php | 31 +++++++++++++++++++++++++++ 3 files changed, 53 insertions(+), 1 deletion(-) diff --git a/phpgwapi/setup/setup.inc.php b/phpgwapi/setup/setup.inc.php index 0dcaae1270..eebc031db6 100755 --- a/phpgwapi/setup/setup.inc.php +++ b/phpgwapi/setup/setup.inc.php @@ -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'; diff --git a/phpgwapi/setup/tables_current.inc.php b/phpgwapi/setup/tables_current.inc.php index 3b17191f25..49a3f189df 100644 --- a/phpgwapi/setup/tables_current.inc.php +++ b/phpgwapi/setup/tables_current.inc.php @@ -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() ) ); ?> diff --git a/phpgwapi/setup/tables_update.inc.php b/phpgwapi/setup/tables_update.inc.php index 168c766c28..903c960d93 100644 --- a/phpgwapi/setup/tables_update.inc.php +++ b/phpgwapi/setup/tables_update.inc.php @@ -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']; + } ?>