Skip to content

Commit

Permalink
Do not update notNull attribute because a refer column could be nulla…
Browse files Browse the repository at this point in the history
…ble.
  • Loading branch information
c9s committed Jun 18, 2016
1 parent 079f5ee commit a453692
Show file tree
Hide file tree
Showing 2 changed files with 1 addition and 1 deletion.
1 change: 0 additions & 1 deletion src/Schema/DeclareColumn.php
Original file line number Diff line number Diff line change
Expand Up @@ -333,7 +333,6 @@ public function asRuntimeColumn()
public function applyType(DeclareColumn $column)
{
$column->type = $this->type;
$column->notNull = $this->notNull;
$column->unsigned = $this->unsigned;
return $column;
}
Expand Down
1 change: 1 addition & 0 deletions src/SqlBuilder/MysqlBuilder.php
Original file line number Diff line number Diff line change
Expand Up @@ -65,6 +65,7 @@ public function buildForeignKeyConstraint(Relationship $rel)
* REFERENCES `schema`.`Addresses` (`idAddresses`)
* ON DELETE NO ACTION
* ON UPDATE NO ACTION
*
* FOREIGN KEY (`order_uuid`) REFERENCES orders(`uuid`)
*/
public function buildColumnSql(SchemaInterface $schema, DeclareColumn $column)
Expand Down

0 comments on commit a453692

Please sign in to comment.