* Resources: allow up to 16k as custom-field value

This commit is contained in:
Ralf Becker 2019-08-13 12:45:22 +02:00
parent 9af802cc9d
commit fc369fda68
3 changed files with 17 additions and 2 deletions

3
resources/setup/setup.inc.php Executable file → Normal file
View File

@ -12,7 +12,7 @@
$setup_info['resources']['name'] = 'resources';
$setup_info['resources']['title'] = 'Resources';
$setup_info['resources']['version'] = '19.1';
$setup_info['resources']['version'] = '19.1.001';
$setup_info['resources']['app_order'] = 5;
$setup_info['resources']['tables'] = array('egw_resources','egw_resources_extra');
$setup_info['resources']['enable'] = 1;
@ -38,3 +38,4 @@ $setup_info['resources']['depends'][] = array(
'appname' => 'api',
'versions' => Array('19.1')
);

2
resources/setup/tables_current.inc.php Executable file → Normal file
View File

@ -45,7 +45,7 @@ $phpgw_baseline = array(
'extra_id' => array('type' => 'int','precision' => '4','nullable' => False),
'extra_name' => array('type' => 'varchar','meta' => 'cfname','precision' => '40','nullable' => False),
'extra_owner' => array('type' => 'int','meta' => 'account','precision' => '4','nullable' => False,'default' => '-1'),
'extra_value' => array('type' => 'varchar','meta' => 'cfvalue','precision' => '255','nullable' => False,'default' => '')
'extra_value' => array('type' => 'varchar','meta' => 'cfvalue','precision' => '16384','nullable' => False,'default' => '')
),
'pk' => array('extra_id','extra_name','extra_owner'),
'fk' => array(),

14
resources/setup/tables_update.inc.php Executable file → Normal file
View File

@ -405,3 +405,17 @@ function resources_upgrade17_1()
{
return $GLOBALS['setup_info']['resources']['currentver'] = '19.1';
}
function resources_upgrade19_1()
{
$GLOBALS['egw_setup']->oProc->AlterColumn('egw_resources_extra','extra_value',array(
'type' => 'varchar',
'meta' => 'cfvalue',
'precision' => '16384',
'nullable' => False,
'default' => ''
));
return $GLOBALS['setup_info']['resources']['currentver'] = '19.1.001';
}