diff --git a/phpgwapi/setup/setup.inc.php b/phpgwapi/setup/setup.inc.php index d1d9fb36f5..587c104414 100755 --- a/phpgwapi/setup/setup.inc.php +++ b/phpgwapi/setup/setup.inc.php @@ -15,7 +15,7 @@ /* Basic information about this app */ $setup_info['phpgwapi']['name'] = 'phpgwapi'; $setup_info['phpgwapi']['title'] = 'phpgwapi'; - $setup_info['phpgwapi']['version'] = '0.9.99.012'; + $setup_info['phpgwapi']['version'] = '0.9.99.013'; $setup_info['phpgwapi']['versions']['current_header'] = '1.26'; $setup_info['phpgwapi']['enable'] = 3; $setup_info['phpgwapi']['app_order'] = 1; diff --git a/phpgwapi/setup/tables_current.inc.php b/phpgwapi/setup/tables_current.inc.php index e19dbccbeb..59a7c45dda 100644 --- a/phpgwapi/setup/tables_current.inc.php +++ b/phpgwapi/setup/tables_current.inc.php @@ -53,7 +53,7 @@ 'phpgw_accounts' => array( 'fd' => array( 'account_id' => array('type' => 'auto'), - 'account_lid' => array('type' => 'varchar','precision' => '25'), + 'account_lid' => array('type' => 'varchar','precision' => '25','nullable' => False), 'account_pwd' => array('type' => 'varchar','precision' => '100','nullable' => False), 'account_firstname' => array('type' => 'varchar','precision' => '50'), 'account_lastname' => array('type' => 'varchar','precision' => '50'), diff --git a/phpgwapi/setup/tables_update.inc.php b/phpgwapi/setup/tables_update.inc.php index 570a98734b..2fa41ad00b 100644 --- a/phpgwapi/setup/tables_update.inc.php +++ b/phpgwapi/setup/tables_update.inc.php @@ -987,8 +987,6 @@ return $GLOBALS['setup_info']['phpgwapi']['currentver']; } - - $test[] = '0.9.99.011'; function phpgwapi_upgrade0_9_99_011() { @@ -1006,4 +1004,17 @@ $GLOBALS['setup_info']['phpgwapi']['currentver'] = '0.9.99.012'; return $GLOBALS['setup_info']['phpgwapi']['currentver']; } + + $test[] = '0.9.99.012'; + function phpgwapi_upgrade0_9_99_012() + { + $GLOBALS['phpgw_setup']->oProc->AlterColumn( + 'phpgw_accounts', + 'account_lid', + array('type' => 'varchar','precision' => '25','nullable' => False) + ); + + $GLOBALS['setup_info']['phpgwapi']['currentver'] = '0.9.99.013'; + return $GLOBALS['setup_info']['phpgwapi']['currentver']; + } ?>