* CalDAV/CardDAV/Calendar/InfoLog/Addressbook: changed database schema to allow for up to 200 char name-part in url to support eg. Bynari WebDAV Collaborator Outlook client

This commit is contained in:
Ralf Becker 2013-05-13 09:35:51 +00:00
parent 9454438a77
commit 410abc5fb7
9 changed files with 45 additions and 7 deletions

View File

@ -10,7 +10,7 @@
*/
$setup_info['calendar']['name'] = 'calendar';
$setup_info['calendar']['version'] = '1.9.010';
$setup_info['calendar']['version'] = '1.9.011';
$setup_info['calendar']['app_order'] = 3;
$setup_info['calendar']['enable'] = 1;
$setup_info['calendar']['index'] = 'calendar.calendar_uiviews.index';
@ -69,3 +69,4 @@ $setup_info['calendar']['check_install'] = array(
'from' => 'Calendar',
),
);

View File

@ -32,7 +32,7 @@ $phpgw_baseline = array(
'cal_recurrence' => array('type' => 'int','precision' => '8','nullable' => False,'default' => '0','comment' => 'cal_start of original recurrence for exception'),
'tz_id' => array('type' => 'int','precision' => '4','comment' => 'key into egw_cal_timezones'),
'cal_deleted' => array('type' => 'int','precision' => '8','comment' => 'ts when event was deleted'),
'caldav_name' => array('type' => 'varchar','precision' => '64','comment' => 'name part of CalDAV URL, if specified by client'),
'caldav_name' => array('type' => 'varchar','precision' => '200','comment' => 'name part of CalDAV URL, if specified by client'),
'range_start' => array('type' => 'int','precision' => '8','nullable' => False,'comment' => 'startdate (of range)'),
'range_end' => array('type' => 'int','precision' => '8','comment' => 'enddate (of range, UNTIL of RRULE)')
),

View File

@ -2279,3 +2279,15 @@ function calendar_upgrade1_9_009()
return $GLOBALS['setup_info']['calendar']['currentver'] = '1.9.011';
}
*/
function calendar_upgrade1_9_010()
{
$GLOBALS['egw_setup']->oProc->AlterColumn('egw_cal','caldav_name',array(
'type' => 'varchar',
'precision' => '200',
'comment' => 'name part of CalDAV URL, if specified by client'
));
return $GLOBALS['setup_info']['calendar']['currentver'] = '1.9.011';
}

View File

@ -12,7 +12,7 @@
*/
$setup_info['infolog']['name'] = 'infolog';
$setup_info['infolog']['version'] = '1.9.003';
$setup_info['infolog']['version'] = '1.9.004';
$setup_info['infolog']['app_order'] = 5;
$setup_info['infolog']['tables'] = array('egw_infolog','egw_infolog_extra');
$setup_info['infolog']['enable'] = 1;
@ -72,3 +72,4 @@ $setup_info['infolog']['depends'][] = array(
'appname' => 'etemplate',
'versions' => Array('1.7','1.8','1.9')
);

View File

@ -44,7 +44,7 @@ $phpgw_baseline = array(
'info_custom_from' => array('type' => 'int','precision' => '1','comment' => 'tick-box to show infolog_from'),
'info_uid' => array('type' => 'varchar','precision' => '255','comment' => 'unique id of the infolog-entry'),
'info_cc' => array('type' => 'varchar','precision' => '255','comment' => 'textfield for email-adress to be notified via email of changes'),
'caldav_name' => array('type' => 'varchar','precision' => '64','comment' => 'name part of CalDAV URL, if specified by client'),
'caldav_name' => array('type' => 'varchar','precision' => '200','comment' => 'name part of CalDAV URL, if specified by client'),
'info_etag' => array('type' => 'int','precision' => '4','default' => '0','comment' => 'etag, not yet used'),
'info_created' => array('type' => 'int','precision' => '8','comment' => 'timestamp of the creation date'),
'info_creator' => array('type' => 'int','precision' => '4','comment' => 'account id of the creator')

View File

@ -702,4 +702,15 @@ WHERE parent.caldav_name=sub.caldav_name',__LINE__,__FILE__) as $row)
' WHERE info_id IN ('.implode(',',$ids).')',__LINE__,__FILE__);
}
return $GLOBALS['setup_info']['infolog']['currentver'] = '1.9.003';
}
}
function infolog_upgrade1_9_003()
{
$GLOBALS['egw_setup']->oProc->AlterColumn('egw_infolog','caldav_name',array(
'type' => 'varchar',
'precision' => '200',
'comment' => 'name part of CalDAV URL, if specified by client'
));
return $GLOBALS['setup_info']['infolog']['currentver'] = '1.9.004';
}

View File

@ -12,7 +12,7 @@
/* Basic information about this app */
$setup_info['phpgwapi']['name'] = 'phpgwapi';
$setup_info['phpgwapi']['title'] = 'EGroupware API';
$setup_info['phpgwapi']['version'] = '1.9.018';
$setup_info['phpgwapi']['version'] = '1.9.019';
$setup_info['phpgwapi']['versions']['current_header'] = '1.29';
$setup_info['phpgwapi']['enable'] = 3;
$setup_info['phpgwapi']['app_order'] = 1;
@ -74,3 +74,4 @@ $setup_info['groupdav']['author'] = $setup_info['groupdav']['maintainer'] = arra
$setup_info['groupdav']['license'] = 'GPL';
$setup_info['groupdav']['hooks']['preferences'] = 'groupdav_hooks::menus';
$setup_info['groupdav']['hooks']['settings'] = 'groupdav_hooks::settings';

View File

@ -343,7 +343,7 @@ $phpgw_baseline = array(
'contact_uid' => array('type' => 'varchar','precision' => '255','comment' => 'unique id of the contact'),
'adr_one_countrycode' => array('type' => 'varchar','precision' => '2','comment' => 'countrycode (business)'),
'adr_two_countrycode' => array('type' => 'varchar','precision' => '2','comment' => 'countrycode (private)'),
'carddav_name' => array('type' => 'varchar','precision' => '64','comment' => 'name part of CardDAV URL, if specified by client')
'carddav_name' => array('type' => 'varchar','precision' => '200','comment' => 'name part of CardDAV URL, if specified by client')
),
'pk' => array('contact_id'),
'fk' => array(),

View File

@ -459,3 +459,15 @@ function phpgwapi_upgrade1_9_017()
return $GLOBALS['setup_info']['phpgwapi']['currentver'] = '1.9.018';
}
function phpgwapi_upgrade1_9_018()
{
$GLOBALS['egw_setup']->oProc->AlterColumn('egw_addressbook','carddav_name',array(
'type' => 'varchar',
'precision' => '200',
'comment' => 'name part of CardDAV URL, if specified by client'
));
return $GLOBALS['setup_info']['phpgwapi']['currentver'] = '1.9.019';
}