From c864d06ac6dc09535cae7c2bbc6320d9ef5f4d74 Mon Sep 17 00:00:00 2001 From: Marc Alexander Date: Mon, 10 Feb 2014 22:10:31 +0100 Subject: [PATCH] [ticket/12183] Add migration file for updating user_newpasswd column PHPBB3-12183 --- .../db/migration/data/v310/passwords_p2.php | 40 +++++++++++++++++++ 1 file changed, 40 insertions(+) create mode 100644 phpBB/phpbb/db/migration/data/v310/passwords_p2.php 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 @@ + 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', ''), + ), + ), + ); + } +}