diff options
author | Marc Alexander <admin@m-a-styles.de> | 2014-02-10 22:10:31 +0100 |
---|---|---|
committer | Marc Alexander <admin@m-a-styles.de> | 2014-02-10 22:10:31 +0100 |
commit | c864d06ac6dc09535cae7c2bbc6320d9ef5f4d74 (patch) | |
tree | a1649ac40cbb7c04774e87d0d124f74125ccb879 /phpBB | |
parent | 5ce0bb76308e8b96050316e4dc89f34ba3967cab (diff) | |
download | forums-c864d06ac6dc09535cae7c2bbc6320d9ef5f4d74.tar forums-c864d06ac6dc09535cae7c2bbc6320d9ef5f4d74.tar.gz forums-c864d06ac6dc09535cae7c2bbc6320d9ef5f4d74.tar.bz2 forums-c864d06ac6dc09535cae7c2bbc6320d9ef5f4d74.tar.xz forums-c864d06ac6dc09535cae7c2bbc6320d9ef5f4d74.zip |
[ticket/12183] Add migration file for updating user_newpasswd column
PHPBB3-12183
Diffstat (limited to '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', ''), + ), + ), + ); + } +} |