Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
2 changes: 2 additions & 0 deletions docs/en/index.rst
Original file line number Diff line number Diff line change
Expand Up @@ -841,6 +841,8 @@ pass them to the method::
// This one with the "default" connection
$migrate = $migrations->migrate(['connection' => 'default']);

.. _feature-flags:

Feature Flags
=============

Expand Down
11 changes: 7 additions & 4 deletions docs/en/writing-migrations.rst
Original file line number Diff line number Diff line change
Expand Up @@ -549,13 +549,16 @@ comment MySQL, Postgres set a text comment on the table
collation MySQL, SqlServer set the table collation *(defaults to database collation)*
row_format MySQL set the table row format
engine MySQL define table engine *(defaults to ``InnoDB``)*
signed MySQL whether the primary key is ``signed`` *(defaults to ``false``)*
signed MySQL whether the primary key is ``signed`` *(defaults to ``true``)*
limit MySQL set the maximum length for the primary key
========== ================ ===========

By default, the primary key is ``unsigned``.
To simply set it to be signed just pass ``signed`` option with a ``true``
value::
By default, the primary key is ``signed``.
To set it to be unsigned, pass the ``signed`` option with a ``false``
value, or enable the ``Migrations.unsigned_primary_keys`` and
``Migrations.unsigned_ints`` feature flags (see :ref:`feature-flags`).
Both flags should be used together so that foreign key columns match
the primary keys they reference::

<?php

Expand Down
Loading