Commit 822ec20
authored
Fix docs incorrectly stating primary keys default to unsigned (#1015)
* Fix docs incorrectly stating primary keys default to unsigned
The documentation claimed primary keys are unsigned by default, but the
actual code defaults to signed. Unsigned primary keys require either
passing 'signed' => false or enabling the Migrations.unsigned_primary_keys
feature flag.
* Mention unsigned_ints flag alongside unsigned_primary_keys
Both flags should be used together so foreign key columns match
the unsigned primary keys they reference.1 parent e8d7b84 commit 822ec20
2 files changed
+9
-4
lines changed| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
841 | 841 | | |
842 | 842 | | |
843 | 843 | | |
| 844 | + | |
| 845 | + | |
844 | 846 | | |
845 | 847 | | |
846 | 848 | | |
| |||
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
549 | 549 | | |
550 | 550 | | |
551 | 551 | | |
552 | | - | |
| 552 | + | |
553 | 553 | | |
554 | 554 | | |
555 | 555 | | |
556 | | - | |
557 | | - | |
558 | | - | |
| 556 | + | |
| 557 | + | |
| 558 | + | |
| 559 | + | |
| 560 | + | |
| 561 | + | |
559 | 562 | | |
560 | 563 | | |
561 | 564 | | |
| |||
0 commit comments