mirror of
https://github.com/phpbb/phpbb.git
synced 2025-06-24 04:08:51 +00:00
[ticket/12352] Remove user_pass_convert column from database
PHPBB3-12352
This commit is contained in:
parent
fcaae9b047
commit
dde9201975
1 changed files with 40 additions and 0 deletions
40
phpBB/phpbb/db/migration/data/v310/passwords_convert_p2.php
Normal file
40
phpBB/phpbb/db/migration/data/v310/passwords_convert_p2.php
Normal file
|
@ -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'),
|
||||
),
|
||||
),
|
||||
);
|
||||
}
|
||||
}
|
Loading…
Add table
Reference in a new issue