mirror of
https://github.com/EGroupware/egroupware.git
synced 2024-12-22 14:41:29 +01:00
change history-log values to longtext (was text=64k)
This commit is contained in:
parent
73404e8136
commit
102b41ef43
@ -11,7 +11,7 @@
|
||||
/* Basic information about this app */
|
||||
$setup_info['api']['name'] = 'api';
|
||||
$setup_info['api']['title'] = 'EGroupware API';
|
||||
$setup_info['api']['version'] = '17.1.002';
|
||||
$setup_info['api']['version'] = '17.1.003';
|
||||
$setup_info['api']['versions']['current_header'] = '1.29';
|
||||
// maintenance release in sync with changelog in doc/rpm-build/debian.changes
|
||||
$setup_info['api']['versions']['maintenance_release'] = '17.1.20180523';
|
||||
|
@ -151,11 +151,11 @@ $phpgw_baseline = array(
|
||||
'history_appname' => array('type' => 'ascii','precision' => '16','nullable' => False),
|
||||
'history_owner' => array('type' => 'int','meta' => 'user','precision' => '4','nullable' => False),
|
||||
'history_status' => array('type' => 'varchar','precision' => '32','nullable' => False),
|
||||
'history_new_value' => array('type' => 'text','nullable' => False),
|
||||
'history_new_value' => array('type' => 'longtext','nullable' => False),
|
||||
'history_timestamp' => array('type' => 'timestamp','nullable' => False,'default' => 'current_timestamp'),
|
||||
'history_old_value' => array('type' => 'text','nullable' => False),
|
||||
'history_old_value' => array('type' => 'longtext','nullable' => False),
|
||||
'sessionid' => array('type' => 'int','precision' => '4','comment' => 'primary key to egw_access_log'),
|
||||
'share_email' => array('type' => 'varchar','precision' => '4096','nullable' => True,'default'=> NULL,'comment' => 'email addresses of share who made the change, comma seperated')
|
||||
'share_email' => array('type' => 'varchar','precision' => '4096','comment' => 'email addresses of share who made the change, comma seperated')
|
||||
),
|
||||
'pk' => array('history_id'),
|
||||
'fk' => array(),
|
||||
|
@ -438,3 +438,18 @@ function api_upgrade17_1_001()
|
||||
));
|
||||
return $GLOBALS['setup_info']['api']['currentver'] = '17.1.002';
|
||||
}
|
||||
|
||||
|
||||
function api_upgrade17_1_002()
|
||||
{
|
||||
$GLOBALS['egw_setup']->oProc->AlterColumn('egw_history_log','history_new_value',array(
|
||||
'type' => 'longtext',
|
||||
'nullable' => False
|
||||
));
|
||||
$GLOBALS['egw_setup']->oProc->AlterColumn('egw_history_log','history_old_value',array(
|
||||
'type' => 'longtext',
|
||||
'nullable' => False
|
||||
));
|
||||
|
||||
return $GLOBALS['setup_info']['api']['currentver'] = '17.1.003';
|
||||
}
|
||||
|
Loading…
Reference in New Issue
Block a user