From 19c6bade68a175fe4aabfc54b9d0532cb3ceccc8 Mon Sep 17 00:00:00 2001 From: Miles Lott Date: Fri, 16 Jan 2004 13:44:05 +0000 Subject: [PATCH] Increase size of password field for pending password method enhancements. NOTE: Last update didn't increment the overall version, so this looks like 2. --- phpgwapi/setup/setup.inc.php | 2 +- phpgwapi/setup/tables_current.inc.php | 2 +- phpgwapi/setup/tables_update.inc.php | 13 +++++++++++++ 3 files changed, 15 insertions(+), 2 deletions(-) diff --git a/phpgwapi/setup/setup.inc.php b/phpgwapi/setup/setup.inc.php index 84d276ebe5..5a710b32a4 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.008'; + $setup_info['phpgwapi']['version'] = '0.9.99.010'; $setup_info['phpgwapi']['versions']['current_header'] = '1.25'; $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 00145045c8..bf9b15e395 100644 --- a/phpgwapi/setup/tables_current.inc.php +++ b/phpgwapi/setup/tables_current.inc.php @@ -54,7 +54,7 @@ 'fd' => array( 'account_id' => array('type' => 'auto'), 'account_lid' => array('type' => 'varchar','precision' => '25'), - 'account_pwd' => array('type' => 'varchar','precision' => '32','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'), 'account_lastlogin' => array('type' => 'int','precision' => '4'), diff --git a/phpgwapi/setup/tables_update.inc.php b/phpgwapi/setup/tables_update.inc.php index 0fe38d2401..35e00d99b3 100644 --- a/phpgwapi/setup/tables_update.inc.php +++ b/phpgwapi/setup/tables_update.inc.php @@ -964,4 +964,17 @@ $GLOBALS['setup_info']['phpgwapi']['currentver'] = '0.9.99.009'; return $GLOBALS['setup_info']['phpgwapi']['currentver']; } + + $test[] = '0.9.99.009'; + function phpgwapi_upgrade0_9_99_009() + { + $GLOBALS['phpgw_setup']->oProc->AlterColumn( + 'phpgw_accounts', + 'account_pwd', + array('type' => 'varchar','precision' => '100','nullable' => False) + ); + + $GLOBALS['setup_info']['phpgwapi']['currentver'] = '0.9.99.010'; + return $GLOBALS['setup_info']['phpgwapi']['currentver']; + } ?>