diff options
author | Andreas Baumann <mail@andreasbaumann.cc> | 2020-02-12 19:21:35 +0100 |
---|---|---|
committer | Andreas Baumann <mail@andreasbaumann.cc> | 2020-02-12 19:21:35 +0100 |
commit | 92cdd4cc7f6955760236e134126d8a68efa13360 (patch) | |
tree | 23a5022a3c1a05ae6df7bda06f62674bb769a7aa /db_update.php | |
parent | 8c65c805f865377685b5d95d35b1d9e60bd48618 (diff) | |
download | fluxbb-better_passwords.tar.xz |
hand-picked changes for better password functions from tyzoids branchbetter_passwords
Diffstat (limited to 'db_update.php')
-rw-r--r-- | db_update.php | 6 |
1 files changed, 5 insertions, 1 deletions
diff --git a/db_update.php b/db_update.php index 2964bf3..b26bd93 100644 --- a/db_update.php +++ b/db_update.php @@ -9,7 +9,7 @@ // The FluxBB version this script updates to define('UPDATE_TO', '1.5.11'); -define('UPDATE_TO_DB_REVISION', 21); +define('UPDATE_TO_DB_REVISION', 22); define('UPDATE_TO_SI_REVISION', 2); define('UPDATE_TO_PARSER_REVISION', 2); @@ -704,6 +704,10 @@ switch ($stage) $db->alter_field('users', 'jabber', 'VARCHAR(80)', true) or error('Unable to alter jabber field', __FILE__, __LINE__, $db->error()); $db->alter_field('users', 'msn', 'VARCHAR(80)', true) or error('Unable to alter msn field', __FILE__, __LINE__, $db->error()); $db->alter_field('users', 'activate_string', 'VARCHAR(80)', true) or error('Unable to alter activate_string field', __FILE__, __LINE__, $db->error()); + + // Make password field VARCHAR(255) to support password_hash + // 255 is recommended by the PHP manual: http://php.net/manual/en/function.password-hash.php + $db->alter_field('users', 'password', 'VARCHAR(255)', false) or error('Unable to alter password field', __FILE__, __LINE__, $db->error()); // Make all IP fields VARCHAR(39) to support IPv6 $db->alter_field('posts', 'poster_ip', 'VARCHAR(39)', true) or error('Unable to alter poster_ip field', __FILE__, __LINE__, $db->error()); |