diff --git a/docs/migrations.rst b/docs/migrations.rst index 403fad9d5..5026a0f36 100644 --- a/docs/migrations.rst +++ b/docs/migrations.rst @@ -455,6 +455,37 @@ To simply change the name of the primary key, we need to override the default `` } } +By default ``primary_key`` is ``signed``. +To simply set it to unsigned just pass ``signed`` option with ``false`` value: + +.. code-block:: php + + table('followers', array('signed' => false)); + $table->addColumn('follower_id', 'integer') + ->addColumn('created', 'timestamp', array('default' => 'CURRENT_TIMESTAMP')) + ->save(); + } + + /** + * Migrate Down. + */ + public function down() + { + + } + } + Valid Column Types ~~~~~~~~~~~~~~~~~~