cat_id was just varchar(32), which is to small if you use lot's of categories, set it to varchar(255) now

This commit is contained in:
Ralf Becker 2006-11-23 10:37:27 +00:00
parent d0e5d6a188
commit 4cc4052813
3 changed files with 15 additions and 11 deletions

View File

@ -14,7 +14,7 @@
/* Basic information about this app */
$setup_info['phpgwapi']['name'] = 'phpgwapi';
$setup_info['phpgwapi']['title'] = 'eGroupWare API';
$setup_info['phpgwapi']['version'] = '1.3.013';
$setup_info['phpgwapi']['version'] = '1.3.014';
$setup_info['phpgwapi']['versions']['current_header'] = '1.28';
$setup_info['phpgwapi']['enable'] = 3;
$setup_info['phpgwapi']['app_order'] = 1;
@ -60,11 +60,3 @@
$setup_info['notifywindow']['app_order'] = 1;
$setup_info['notifywindow']['tables'] = '';
$setup_info['notifywindow']['hooks'][] = 'home';

View File

@ -451,7 +451,7 @@
'contact_tid' => array('type' => 'char','precision' => '1','default' => 'n'),
'contact_owner' => array('type' => 'int','precision' => '8','nullable' => False),
'contact_private' => array('type' => 'int','precision' => '1','default' => '0'),
'cat_id' => array('type' => 'varchar','precision' => '32'),
'cat_id' => array('type' => 'varchar','precision' => '255'),
'n_family' => array('type' => 'varchar','precision' => '64'),
'n_given' => array('type' => 'varchar','precision' => '64'),
'n_middle' => array('type' => 'varchar','precision' => '64'),

View File

@ -667,3 +667,15 @@
return $GLOBALS['setup_info']['phpgwapi']['currentver'] = '1.3.013';
}
$test[] = '1.3.013';
function phpgwapi_upgrade1_3_013()
{
$GLOBALS['egw_setup']->oProc->AlterColumn('egw_addressbook','cat_id',array(
'type' => 'varchar',
'precision' => '255'
));
return $GLOBALS['setup_info']['phpgwapi']['currentver'] = '1.3.014';
}
?>