aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorMarc Alexander <admin@m-a-styles.de>2014-05-30 17:46:22 +0200
committerMarc Alexander <admin@m-a-styles.de>2014-06-01 21:31:05 +0200
commitdde92019759e63ec176f05da98742747113944b3 (patch)
treec58f78b534b8a815077b00d264445422629730c8
parentfcaae9b0474035b9869f7e80c82242293edcfc27 (diff)
downloadforums-dde92019759e63ec176f05da98742747113944b3.tar
forums-dde92019759e63ec176f05da98742747113944b3.tar.gz
forums-dde92019759e63ec176f05da98742747113944b3.tar.bz2
forums-dde92019759e63ec176f05da98742747113944b3.tar.xz
forums-dde92019759e63ec176f05da98742747113944b3.zip
[ticket/12352] Remove user_pass_convert column from database
PHPBB3-12352
-rw-r--r--phpBB/phpbb/db/migration/data/v310/passwords_convert_p2.php40
1 files changed, 40 insertions, 0 deletions
diff --git a/phpBB/phpbb/db/migration/data/v310/passwords_convert_p2.php b/phpBB/phpbb/db/migration/data/v310/passwords_convert_p2.php
new file mode 100644
index 0000000000..3a7d3d2169
--- /dev/null
+++ b/phpBB/phpbb/db/migration/data/v310/passwords_convert_p2.php
@@ -0,0 +1,40 @@
+<?php
+/**
+*
+* @package migration
+* @copyright (c) 2014 phpBB Group
+* @license http://opensource.org/licenses/gpl-2.0.php GNU General Public License v2
+*
+*/
+
+namespace phpbb\db\migration\data\v310;
+
+class passwords_convert_p2 extends \phpbb\db\migration\migration
+{
+ static public function depends_on()
+ {
+ return array('\phpbb\db\migration\data\v310\passwords_convert_p1');
+ }
+
+ public function update_schema()
+ {
+ return array(
+ 'drop_columns' => array(
+ $this->table_prefix . 'users' => array(
+ 'user_pass_convert',
+ ),
+ ),
+ );
+ }
+
+ public function revert_schema()
+ {
+ return array(
+ 'add_columns' => array(
+ $this->table_prefix . 'users' => array(
+ 'user_pass_convert' => array('BOOL', 0, 'after' => 'user_passchg'),
+ ),
+ ),
+ );
+ }
+}