From 5d1b2102de69356046d80b70cfe3fc2ec591b121 Mon Sep 17 00:00:00 2001 From: Lars Kneschke Date: Sun, 19 Jun 2005 14:22:34 +0000 Subject: [PATCH] tables needed for syncml --- phpgwapi/setup/setup.inc.php | 5 ++- phpgwapi/setup/tables_current.inc.php | 44 ++++++++++++++++++++ phpgwapi/setup/tables_update.inc.php | 60 +++++++++++++++++++++++++++ 3 files changed, 108 insertions(+), 1 deletion(-) diff --git a/phpgwapi/setup/setup.inc.php b/phpgwapi/setup/setup.inc.php index 4bdb579d2e..b659f27db7 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'] = '1.0.1.008'; + $setup_info['phpgwapi']['version'] = '1.0.1.009'; $setup_info['phpgwapi']['versions']['current_header'] = '1.28'; $setup_info['phpgwapi']['enable'] = 3; $setup_info['phpgwapi']['app_order'] = 1; @@ -42,6 +42,9 @@ $setup_info['phpgwapi']['tables'][] = 'phpgw_history_log'; $setup_info['phpgwapi']['tables'][] = 'egw_async'; $setup_info['phpgwapi']['tables'][] = 'egw_api_content_history'; + $setup_info['phpgwapi']['tables'][] = 'egw_contentmap'; + $setup_info['phpgwapi']['tables'][] = 'egw_syncmldevinfo'; + $setup_info['phpgwapi']['tables'][] = 'egw_syncmlsummary'; $setup_info['phpgwapi']['tables'][] = 'phpgw_vfs2_mimetypes'; $setup_info['phpgwapi']['tables'][] = 'phpgw_vfs2_quota'; diff --git a/phpgwapi/setup/tables_current.inc.php b/phpgwapi/setup/tables_current.inc.php index fb8741e8e2..389a0fb60d 100644 --- a/phpgwapi/setup/tables_current.inc.php +++ b/phpgwapi/setup/tables_current.inc.php @@ -511,5 +511,49 @@ 'ix' => array(), 'uc' => array() ), + 'egw_contentmap' => array( + 'fd' => array( + 'map_id' => array('type' => 'varchar', 'precision' => '255', 'nullable' => False), + 'map_guid' => array('type' => 'varchar', 'precision' => '200', 'nullable' => False), + 'map_locuid' => array('type' => 'varchar', 'precision' => '200', 'nullable' => False), + 'map_timestamp' => array('type' => 'timestamp', 'nullable' => False), + 'map_expired' => array('type' => 'bool', 'nullable' => False), + ), + 'pk' => array(array('map_id','map_guid','map_locuid')), + 'fk' => array(), + 'ix' => array(array('map_id','map_locuid'),'map_expired'), + 'uc' => array() + ), + 'egw_syncmldevinfo' => array( + 'fd' => array( + 'dev_id' => array('type' => 'varchar', 'precision' => '255', 'nullable' => False), + 'dev_dtdversion' => array('type' => 'varchar', 'precision' => '10', 'nullable' => False), + 'dev_numberofchanges' => array('type' => 'bool', 'nullable' => False), + 'dev_largeobjs' => array('type' => 'bool', 'nullable' => False), + 'dev_swversion' => array('type' => 'varchar', 'precision' => '100', 'nullable' => False), + 'dev_oem' => array('type' => 'varchar', 'precision' => '100', 'nullable' => False), + 'dev_model' => array('type' => 'varchar', 'precision' => '100', 'nullable' => False), + 'dev_manufacturer' => array('type' => 'varchar', 'precision' => '100', 'nullable' => False), + 'dev_devicetype' => array('type' => 'varchar', 'precision' => '100', 'nullable' => False), + 'dev_deviceid' => array('type' => 'varchar', 'precision' => '100', 'nullable' => False), + 'dev_datastore' => array('type' => 'text', 'nullable' => False), + ), + 'pk' => array('dev_id'), + 'fk' => array(), + 'ix' => array(), + 'uc' => array() + ), + 'egw_syncmlsummary' => array( + 'fd' => array( + 'dev_id' => array('type' => 'varchar', 'precision' => '255', 'nullable' => False), + 'sync_path' => array('type' => 'varchar', 'precision' => '100', 'nullable' => False), + 'sync_serverts' => array('type' => 'varchar', 'precision' => '20', 'nullable' => False), + 'sync_clientts' => array('type' => 'varchar', 'precision' => '20', 'nullable' => False), + ), + 'pk' => array(array('dev_id','sync_path')), + 'fk' => array(), + 'ix' => array(), + 'uc' => array() + ), /*********************************************************************/ ); diff --git a/phpgwapi/setup/tables_update.inc.php b/phpgwapi/setup/tables_update.inc.php index 806388028d..e2f9c929fa 100644 --- a/phpgwapi/setup/tables_update.inc.php +++ b/phpgwapi/setup/tables_update.inc.php @@ -402,4 +402,64 @@ return $GLOBALS['setup_info']['phpgwapi']['currentver']; } + $test[] = '1.0.1.008'; + function phpgwapi_upgrade1_0_1_008() + { + $GLOBALS['phpgw_setup']->oProc->CreateTable( + 'egw_contentmap', array( + 'fd' => array( + 'map_id' => array('type' => 'varchar', 'precision' => '255', 'nullable' => False), + 'map_guid' => array('type' => 'varchar', 'precision' => '200', 'nullable' => False), + 'map_locuid' => array('type' => 'varchar', 'precision' => '200', 'nullable' => False), + 'map_timestamp' => array('type' => 'timestamp', 'nullable' => False), + 'map_expired' => array('type' => 'bool', 'nullable' => False), + ), + 'pk' => array(array('map_id','map_guid','map_locuid')), + 'fk' => array(), + 'ix' => array(array('map_id','map_locuid'),'map_expired'), + 'uc' => array() + ) + ); + + $GLOBALS['phpgw_setup']->oProc->CreateTable( + 'egw_syncmldevinfo', array( + 'fd' => array( + 'dev_id' => array('type' => 'varchar', 'precision' => '255', 'nullable' => False), + 'dev_dtdversion' => array('type' => 'varchar', 'precision' => '10', 'nullable' => False), + 'dev_numberofchanges' => array('type' => 'bool', 'nullable' => False), + 'dev_largeobjs' => array('type' => 'bool', 'nullable' => False), + 'dev_swversion' => array('type' => 'varchar', 'precision' => '100', 'nullable' => False), + 'dev_oem' => array('type' => 'varchar', 'precision' => '100', 'nullable' => False), + 'dev_model' => array('type' => 'varchar', 'precision' => '100', 'nullable' => False), + 'dev_manufacturer' => array('type' => 'varchar', 'precision' => '100', 'nullable' => False), + 'dev_devicetype' => array('type' => 'varchar', 'precision' => '100', 'nullable' => False), + 'dev_deviceid' => array('type' => 'varchar', 'precision' => '100', 'nullable' => False), + 'dev_datastore' => array('type' => 'text', 'nullable' => False), + ), + 'pk' => array('dev_id'), + 'fk' => array(), + 'ix' => array(), + 'uc' => array() + ) + ); + + $GLOBALS['phpgw_setup']->oProc->CreateTable( + 'egw_syncmlsummary', array( + 'fd' => array( + 'dev_id' => array('type' => 'varchar', 'precision' => '255', 'nullable' => False), + 'sync_path' => array('type' => 'varchar', 'precision' => '100', 'nullable' => False), + 'sync_serverts' => array('type' => 'varchar', 'precision' => '20', 'nullable' => False), + 'sync_clientts' => array('type' => 'varchar', 'precision' => '20', 'nullable' => False), + ), + 'pk' => array(array('dev_id','sync_path')), + 'fk' => array(), + 'ix' => array(), + 'uc' => array() + ) + ); + + $GLOBALS['setup_info']['phpgwapi']['currentver'] = '1.0.1.009'; + return $GLOBALS['setup_info']['phpgwapi']['currentver']; + } + ?>