Skip to content

Commit ccb4bd2

Browse files
committed
Add note about unsigned on foreign keys. Closes laravel#298.
1 parent 9ef669e commit ccb4bd2

File tree

1 file changed

+2
-0
lines changed

1 file changed

+2
-0
lines changed

schema.md

+2
Original file line numberDiff line numberDiff line change
@@ -176,6 +176,8 @@ To drop a foreign key, you may use the `dropForeign` method. A similar naming co
176176

177177
$table->dropForeign('posts_user_id_foreign');
178178

179+
> **Note:** When creating a foreign key that references an incrementing integer, remember to always make the foreign key column `unsigned`.
180+
179181
<a name="dropping-indexes"></a>
180182
## Dropping Indexes
181183

0 commit comments

Comments
 (0)