mirror of
https://github.com/EGroupware/egroupware.git
synced 2024-12-26 00:29:38 +01:00
tables needed for syncml
This commit is contained in:
parent
70e7091322
commit
5d1b2102de
@ -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';
|
||||
|
@ -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()
|
||||
),
|
||||
/*********************************************************************/
|
||||
);
|
||||
|
@ -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'];
|
||||
}
|
||||
|
||||
?>
|
||||
|
Loading…
Reference in New Issue
Block a user