mirror of
https://github.com/phpbb/phpbb.git
synced 2025-06-07 06:55:25 +02:00
Merge branch 'develop-ascraeus' into develop
* develop-ascraeus: [ticket/13117] Correctly define auto increment columns as "NOT NULL" on mysql
This commit is contained in:
commit
e64c1b463e
@ -1512,7 +1512,7 @@ class tools
|
||||
$sql .= (strpos($column_data[1], '0x') === 0) ? "DEFAULT {$column_data[1]} " : "DEFAULT '{$column_data[1]}' ";
|
||||
}
|
||||
|
||||
if (!is_null($column_data[1]))
|
||||
if (!is_null($column_data[1]) || (isset($column_data[2]) && $column_data[2] == 'auto_increment'))
|
||||
{
|
||||
$sql .= 'NOT NULL';
|
||||
}
|
||||
|
Loading…
x
Reference in New Issue
Block a user