mirror of
https://github.com/EGroupware/egroupware.git
synced 2024-11-21 23:43:17 +01:00
* Resources: allow up to 16k as custom-field value
This commit is contained in:
parent
9af802cc9d
commit
fc369fda68
3
resources/setup/setup.inc.php
Executable file → Normal file
3
resources/setup/setup.inc.php
Executable file → Normal 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
2
resources/setup/tables_current.inc.php
Executable file → Normal 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
14
resources/setup/tables_update.inc.php
Executable file → Normal 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';
|
||||
}
|
||||
|
||||
|
Loading…
Reference in New Issue
Block a user