diff options
author | Nathan Guse <nathaniel.guse@gmail.com> | 2014-02-20 20:54:30 -0600 |
---|---|---|
committer | Nathan Guse <nathaniel.guse@gmail.com> | 2014-02-20 20:54:30 -0600 |
commit | 2df2032b4877ea59412bff80a5b54a7ea6aeb8b8 (patch) | |
tree | 06af63083a8732f072d439cf9bec4cf34b77ac3f /phpBB/phpbb | |
parent | b8d30bfc80b5127c5dab1bfe18035e70d77bb7aa (diff) | |
parent | 92f198037776e1832f6e58c93b20b3673631674f (diff) | |
download | forums-2df2032b4877ea59412bff80a5b54a7ea6aeb8b8.tar forums-2df2032b4877ea59412bff80a5b54a7ea6aeb8b8.tar.gz forums-2df2032b4877ea59412bff80a5b54a7ea6aeb8b8.tar.bz2 forums-2df2032b4877ea59412bff80a5b54a7ea6aeb8b8.tar.xz forums-2df2032b4877ea59412bff80a5b54a7ea6aeb8b8.zip |
Merge pull request #2025 from marc1706/ticket/12183
[ticket/12183] Update user_newpasswd column in users table for passwords manager
Diffstat (limited to 'phpBB/phpbb')
-rw-r--r-- | phpBB/phpbb/db/migration/data/v310/passwords_p2.php | 40 |
1 files changed, 40 insertions, 0 deletions
diff --git a/phpBB/phpbb/db/migration/data/v310/passwords_p2.php b/phpBB/phpbb/db/migration/data/v310/passwords_p2.php new file mode 100644 index 0000000000..553e79403d --- /dev/null +++ b/phpBB/phpbb/db/migration/data/v310/passwords_p2.php @@ -0,0 +1,40 @@ +<?php +/** +* +* @package migration +* @copyright (c) 2014 phpBB Group +* @license http://opensource.org/licenses/gpl-license.php GNU Public License v2 +* +*/ + +namespace phpbb\db\migration\data\v310; + +class passwords_p2 extends \phpbb\db\migration\migration +{ + static public function depends_on() + { + return array('\phpbb\db\migration\data\v310\passwords'); + } + + public function update_schema() + { + return array( + 'change_columns' => array( + $this->table_prefix . 'users' => array( + 'user_newpasswd' => array('VCHAR:255', ''), + ), + ), + ); + } + + public function revert_schema() + { + return array( + 'change_columns' => array( + $this->table_prefix . 'users' => array( + 'user_newpasswd' => array('VCHAR:40', ''), + ), + ), + ); + } +} |