mirror of
https://github.com/phpbb/phpbb.git
synced 2025-08-09 10:16:36 +02:00
[ticket/9687] Fix code style and tests
PHPBB3-9687
This commit is contained in:
committed by
Marc Alexander
parent
64ab1fc24c
commit
e7015bf1dd
@@ -148,7 +148,7 @@ class ban_table_p1 extends \phpbb\db\migration\migration
|
||||
$processed_rows++;
|
||||
|
||||
$bans[] = [
|
||||
'ban_userid' => ($row['ban_mode'] === 'user') ? (int)$row['ban_item'] : 0,
|
||||
'ban_userid' => ($row['ban_mode'] === 'user') ? (int) $row['ban_item'] : 0,
|
||||
'ban_ip' => ($row['ban_mode'] === 'ip') ? $row['ban_item'] : '',
|
||||
'ban_email' => ($row['ban_mode'] === 'email') ? $row['ban_item'] : '',
|
||||
'ban_start' => $row['ban_start'],
|
||||
|
@@ -35,7 +35,7 @@ class ban_table_p2 extends \phpbb\db\migration\migration
|
||||
'add_tables' => array(
|
||||
$this->table_prefix . 'banlist' => array(
|
||||
'COLUMNS' => array(
|
||||
'ban_id' => array('ULINT', NULL, 'auto_increment'),
|
||||
'ban_id' => array('ULINT', null, 'auto_increment'),
|
||||
'ban_userid' => array('ULINT', 0),
|
||||
'ban_ip' => array('VCHAR:40', ''),
|
||||
'ban_email' => array('VCHAR_UNI:100', ''),
|
||||
|
Reference in New Issue
Block a user