From bf28d8290b6ed40abc7cc48f0e1b896803339c52 Mon Sep 17 00:00:00 2001 From: Mark Date: Wed, 30 Apr 2014 17:29:27 +0400 Subject: [PATCH] note in migration docs about additional custom options --- docs/guide/db-migrations.md | 4 ++++ 1 file changed, 4 insertions(+) diff --git a/docs/guide/db-migrations.md b/docs/guide/db-migrations.md index 78f4bed007..afcb0e22f3 100644 --- a/docs/guide/db-migrations.md +++ b/docs/guide/db-migrations.md @@ -109,6 +109,10 @@ See documentation of [[yii\db\QueryBuilder::getColumnType()]] for more details a of available types. You may also use the constants defined in [[yii\db\Schema]] to define column types. +> Note: You can add constraints and other custom table options at the end of the table description by +> specifying them as simple string. For example in the above migration, after `content` attribute definition +> you can write `'CONSTRAINT ...'` or other custom options. + Transactional Migrations ------------------------