"birthday column with format YYYY-mm-dd was only varchar(10) instead of varchar(12)"

This commit is contained in:
Ralf Becker 2007-04-26 06:28:36 +00:00
parent be4c3f44d1
commit 5548c8b038
3 changed files with 16 additions and 3 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.019';
$setup_info['phpgwapi']['version'] = '1.3.020';
$setup_info['phpgwapi']['versions']['current_header'] = '1.28';
$setup_info['phpgwapi']['enable'] = 3;
$setup_info['phpgwapi']['app_order'] = 1;
@ -63,3 +63,4 @@
$setup_info['notifywindow']['tables'] = '';
$setup_info['notifywindow']['hooks'][] = 'home';

View File

@ -459,7 +459,7 @@
'n_suffix' => array('type' => 'varchar','precision' => '64'),
'n_fn' => array('type' => 'varchar','precision' => '128'),
'n_fileas' => array('type' => 'varchar','precision' => '255'),
'contact_bday' => array('type' => 'varchar','precision' => '10'),
'contact_bday' => array('type' => 'varchar','precision' => '12'),
'org_name' => array('type' => 'varchar','precision' => '64'),
'org_unit' => array('type' => 'varchar','precision' => '64'),
'contact_title' => array('type' => 'varchar','precision' => '64'),

View File

@ -298,7 +298,7 @@
'n_suffix' => array('type' => 'varchar','precision' => '64'),
'n_fn' => array('type' => 'varchar','precision' => '128'),
'n_fileas' => array('type' => 'varchar','precision' => '255'),
'contact_bday' => array('type' => 'varchar','precision' => '10'),
'contact_bday' => array('type' => 'varchar','precision' => '12'),
'org_name' => array('type' => 'varchar','precision' => '64'),
'org_unit' => array('type' => 'varchar','precision' => '64'),
'contact_title' => array('type' => 'varchar','precision' => '64'),
@ -753,4 +753,16 @@
return $GLOBALS['setup_info']['phpgwapi']['currentver'] = '1.3.019';
}
$test[] = '1.3.019';
function phpgwapi_upgrade1_3_019()
{
$GLOBALS['egw_setup']->oProc->AlterColumn('egw_addressbook','contact_bday',array(
'type' => 'varchar',
'precision' => '12'
));
return $GLOBALS['setup_info']['phpgwapi']['currentver'] = '1.3.020';
}
?>