diff --git a/phpgwapi/setup/setup.inc.php b/phpgwapi/setup/setup.inc.php index e74daf896a..fa30791a3e 100755 --- a/phpgwapi/setup/setup.inc.php +++ b/phpgwapi/setup/setup.inc.php @@ -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'; + diff --git a/phpgwapi/setup/tables_current.inc.php b/phpgwapi/setup/tables_current.inc.php index 58b79a92ae..11d09169ed 100644 --- a/phpgwapi/setup/tables_current.inc.php +++ b/phpgwapi/setup/tables_current.inc.php @@ -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'), diff --git a/phpgwapi/setup/tables_update.inc.php b/phpgwapi/setup/tables_update.inc.php index 7ea134e573..51f22da184 100644 --- a/phpgwapi/setup/tables_update.inc.php +++ b/phpgwapi/setup/tables_update.inc.php @@ -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'; + } ?>