Skip to content

Conversation

@dereuromark
Copy link
Member

Summary

  • The docs in writing-migrations.rst claimed primary keys are unsigned by default, but the code defaults to signed (see MysqlAdapter line 275 and Column::getUnsigned())
  • Updated the table option description: signed defaults to true (not false)
  • Updated the prose to say "By default, the primary key is signed" and point to the Migrations.unsigned_primary_keys feature flag
  • Added a .. _feature-flags: ref label to index.rst so the cross-reference works

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.
@dereuromark dereuromark force-pushed the fix/docs-unsigned-primary-key-default branch from ba51013 to d6e4487 Compare January 29, 2026 04:21
Both flags should be used together so foreign key columns match
the unsigned primary keys they reference.
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants