mirror of
https://github.com/yiisoft/yii.git
synced 2026-03-12 11:06:54 +01:00
merge from 1.0
This commit is contained in:
@@ -101,7 +101,7 @@ EOD;
|
||||
{
|
||||
if($column->isPrimaryKey && $table->sequenceName!==null || $column->isForeignKey)
|
||||
continue;
|
||||
if(!$column->allowNull)
|
||||
if(!$column->allowNull && $column->defaultValue!==null)
|
||||
$required[]=$column->name;
|
||||
if($column->type==='integer')
|
||||
$integers[]=$column->name;
|
||||
|
||||
Reference in New Issue
Block a user