mirror of
https://github.com/EGroupware/egroupware.git
synced 2024-12-23 15:18:58 +01:00
Avoid multiple NOT NULL parameters, as with MySQL auto_increment fields
This commit is contained in:
parent
7fa04fe669
commit
653a5e78d3
@ -413,7 +413,10 @@
|
||||
{
|
||||
if(!$bNullable)
|
||||
{
|
||||
$sFieldSQL .= ' NOT NULL';
|
||||
if(strpos(strtolower($sFieldSQL),' not null')===false)
|
||||
{
|
||||
$sFieldSQL .= ' NOT NULL';
|
||||
}
|
||||
}
|
||||
|
||||
if(isset($aField['default']))
|
||||
|
Loading…
Reference in New Issue
Block a user