diff --git a/phpgwapi/setup/tables_update.inc.php b/phpgwapi/setup/tables_update.inc.php index b1278f4ae0..59adc76bb6 100644 --- a/phpgwapi/setup/tables_update.inc.php +++ b/phpgwapi/setup/tables_update.inc.php @@ -32,27 +32,33 @@ return $GLOBALS['setup_info']['phpgwapi']['currentver'] = '1.5.001'; } - $test[] = '1.5.001'; - function phpgwapi_upgrade1_5_001() - { - $GLOBALS['egw_setup']->oProc->AlterColumn('egw_addressbook','org_name',array( - 'type' => 'varchar', - 'precision' => '128', - 'nullable' => true - )); - $GLOBALS['egw_setup']->oProc->AlterColumn('egw_addressbook','contact_email',array( - 'type' => 'varchar', - 'precision' => '128', - 'nullable' => true - )); - $GLOBALS['egw_setup']->oProc->AlterColumn('egw_addressbook','contact_email_home',array( - 'type' => 'varchar', - 'precision' => '128', - 'nullable' => true - )); + $test[] = '1.4.003'; + function phpgwapi_upgrade1_4_003() + { + return $GLOBALS['setup_info']['phpgwapi']['currentver'] = '1.5.001'; + } - return $GLOBALS['setup_info']['phpgwapi']['currentver'] = '1.5.002'; - } + $test[] = '1.5.001'; + function phpgwapi_upgrade1_5_001() + { + $GLOBALS['egw_setup']->oProc->AlterColumn('egw_addressbook','org_name',array( + 'type' => 'varchar', + 'precision' => '128', + 'nullable' => true + )); + $GLOBALS['egw_setup']->oProc->AlterColumn('egw_addressbook','contact_email',array( + 'type' => 'varchar', + 'precision' => '128', + 'nullable' => true + )); + $GLOBALS['egw_setup']->oProc->AlterColumn('egw_addressbook','contact_email_home',array( + 'type' => 'varchar', + 'precision' => '128', + 'nullable' => true + )); + + return $GLOBALS['setup_info']['phpgwapi']['currentver'] = '1.5.002'; + } $test[] = '1.5.002'; function phpgwapi_upgrade1_5_002() @@ -178,4 +184,3 @@ } return $GLOBALS['setup_info']['phpgwapi']['currentver'] = '1.5.004'; } -?>