From 5bc5e4716cc7437941e9cdb6a2b15ed1f4f19b95 Mon Sep 17 00:00:00 2001 From: Marc Alexander Date: Fri, 27 Sep 2013 16:58:06 +0200 Subject: [feature/passwords] More changes due to namespacing PHPBB3-11610 --- phpBB/phpbb/db/migration/data/v310/passwords.php | 40 ++++++++++++++++++++++++ 1 file changed, 40 insertions(+) create mode 100644 phpBB/phpbb/db/migration/data/v310/passwords.php (limited to 'phpBB/phpbb/db/migration/data/v310/passwords.php') diff --git a/phpBB/phpbb/db/migration/data/v310/passwords.php b/phpBB/phpbb/db/migration/data/v310/passwords.php new file mode 100644 index 0000000000..c422f681ba --- /dev/null +++ b/phpBB/phpbb/db/migration/data/v310/passwords.php @@ -0,0 +1,40 @@ + array( + $this->table_prefix . 'users' => array( + 'user_password' => array('VCHAR:255', ''), + ), + ), + ); + } + + public function revert_schema() + { + return array( + 'change_columns' => array( + $this->table_prefix . 'users' => array( + 'user_password' => array('VCHAR:40', ''), + ), + ), + ); + } +} -- cgit v1.2.1 From 841dd6b19f08a575fe6d6e4794bdb9729e2ce6b8 Mon Sep 17 00:00:00 2001 From: Marc Alexander Date: Sun, 13 Oct 2013 11:33:59 +0200 Subject: [feature/passwords] Modify forum_password column type for new hash types PHPBB3-11610 --- phpBB/phpbb/db/migration/data/v310/passwords.php | 14 ++++++++++---- 1 file changed, 10 insertions(+), 4 deletions(-) (limited to 'phpBB/phpbb/db/migration/data/v310/passwords.php') diff --git a/phpBB/phpbb/db/migration/data/v310/passwords.php b/phpBB/phpbb/db/migration/data/v310/passwords.php index c422f681ba..3422f75917 100644 --- a/phpBB/phpbb/db/migration/data/v310/passwords.php +++ b/phpBB/phpbb/db/migration/data/v310/passwords.php @@ -20,8 +20,11 @@ class passwords extends \phpbb\db\migration\migration { return array( 'change_columns' => array( - $this->table_prefix . 'users' => array( - 'user_password' => array('VCHAR:255', ''), + $this->table_prefix . 'users' => array( + 'user_password' => array('VCHAR:255', ''), + ), + $this->table_prefix . 'forums' => array( + 'forum_password' => array('VCHAR:255', ''), ), ), ); @@ -31,8 +34,11 @@ class passwords extends \phpbb\db\migration\migration { return array( 'change_columns' => array( - $this->table_prefix . 'users' => array( - 'user_password' => array('VCHAR:40', ''), + $this->table_prefix . 'users' => array( + 'user_password' => array('VCHAR:40', ''), + ), + $this->table_prefix . 'forums' => array( + 'forum_password' => array('VCHAR:40', ''), ), ), ); -- cgit v1.2.1