mirror of
https://github.com/phpbb/phpbb.git
synced 2025-06-19 01:38:54 +00: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
1 changed files with 1 additions and 1 deletions
|
@ -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…
Add table
Reference in a new issue