1
0
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:
Oliver Schramm
2018-10-01 23:40:15 +02:00
committed by Marc Alexander
parent 64ab1fc24c
commit e7015bf1dd
17 changed files with 78 additions and 55 deletions

View File

@@ -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'],

View File

@@ -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', ''),