Skip to content

Commit

Permalink
Update references link
Browse files Browse the repository at this point in the history
  • Loading branch information
c9s committed Jan 19, 2016
1 parent f7ae30b commit 07a0396
Showing 1 changed file with 4 additions and 0 deletions.
4 changes: 4 additions & 0 deletions src/LazyRecord/SqlBuilder/MysqlBuilder.php
Original file line number Diff line number Diff line change
Expand Up @@ -51,6 +51,10 @@ public function buildColumnSql(SchemaInterface $schema, DeclareColumn $column)
FOREIGN KEY (`order_uuid`) REFERENCES orders(`uuid`)
A column with foreign key should not be nullable.
@see http://stackoverflow.com/questions/10028214/add-foreign-key-to-existing-table
*/
foreach( $schema->relations as $rel ) {
switch( $rel['type'] ) {
Expand Down

0 comments on commit 07a0396

Please sign in to comment.