aboutsummaryrefslogtreecommitdiffstats
path: root/phpBB/phpbb/db
diff options
context:
space:
mode:
authorNils Adermann <naderman@naderman.de>2014-02-02 06:26:35 -0800
committerNils Adermann <naderman@naderman.de>2014-02-02 06:26:35 -0800
commitf8d6a07392f73bc7b85418a60047d761661a7657 (patch)
treecfefda4a9dab1019c9e6fad96c8055cec5b03c9e /phpBB/phpbb/db
parentcb04252fbd17ac718c09ecc44dab4c7627a98b35 (diff)
parentb094c7999660703370566018bf449a9280148b8d (diff)
downloadforums-f8d6a07392f73bc7b85418a60047d761661a7657.tar
forums-f8d6a07392f73bc7b85418a60047d761661a7657.tar.gz
forums-f8d6a07392f73bc7b85418a60047d761661a7657.tar.bz2
forums-f8d6a07392f73bc7b85418a60047d761661a7657.tar.xz
forums-f8d6a07392f73bc7b85418a60047d761661a7657.zip
Merge pull request #1716 from marc1706/feature/passwords
[feature/passwords] Add password hashing manager with support for newer hashing algorithms
Diffstat (limited to 'phpBB/phpbb/db')
-rw-r--r--phpBB/phpbb/db/migration/data/v310/passwords.php46
1 files changed, 46 insertions, 0 deletions
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..3422f75917
--- /dev/null
+++ b/phpBB/phpbb/db/migration/data/v310/passwords.php
@@ -0,0 +1,46 @@
+<?php
+/**
+*
+* @package migration
+* @copyright (c) 2013 phpBB Group
+* @license http://opensource.org/licenses/gpl-license.php GNU Public License v2
+*
+*/
+
+namespace phpbb\db\migration\data\v310;
+
+class passwords extends \phpbb\db\migration\migration
+{
+ static public function depends_on()
+ {
+ return array('\phpbb\db\migration\data\v30x\release_3_0_11');
+ }
+
+ public function update_schema()
+ {
+ return array(
+ 'change_columns' => array(
+ $this->table_prefix . 'users' => array(
+ 'user_password' => array('VCHAR:255', ''),
+ ),
+ $this->table_prefix . 'forums' => array(
+ 'forum_password' => array('VCHAR:255', ''),
+ ),
+ ),
+ );
+ }
+
+ public function revert_schema()
+ {
+ return array(
+ 'change_columns' => array(
+ $this->table_prefix . 'users' => array(
+ 'user_password' => array('VCHAR:40', ''),
+ ),
+ $this->table_prefix . 'forums' => array(
+ 'forum_password' => array('VCHAR:40', ''),
+ ),
+ ),
+ );
+ }
+}