From 76fead81dc9a74535f9ec7ac60c23f55ca9fc324 Mon Sep 17 00:00:00 2001 From: PaulZi Date: Tue, 19 Jan 2016 14:27:29 +0300 Subject: [PATCH] Add example field in sample migration --- README.md | 2 ++ 1 file changed, 2 insertions(+) diff --git a/README.md b/README.md index 42436af..7c06b4b 100644 --- a/README.md +++ b/README.md @@ -42,6 +42,7 @@ class m150722_150000_single_tree extends Migration 'lft' => Schema::TYPE_INTEGER . ' NOT NULL', 'rgt' => Schema::TYPE_INTEGER . ' NOT NULL', 'depth' => Schema::TYPE_INTEGER . ' NOT NULL', + 'name' => Schema::TYPE_STRING . ' NOT NULL', // example field ], $tableOptions); $this->createIndex('lft', '{{%single_tree}}', ['lft', 'rgt']); $this->createIndex('rgt', '{{%single_tree}}', ['rgt']); @@ -67,6 +68,7 @@ class m150722_150100_multiple_tree extends Migration 'lft' => Schema::TYPE_INTEGER . ' NOT NULL', 'rgt' => Schema::TYPE_INTEGER . ' NOT NULL', 'depth' => Schema::TYPE_INTEGER . ' NOT NULL', + 'name' => Schema::TYPE_STRING . ' NOT NULL', // example field ], $tableOptions); $this->createIndex('lft', '{{%multiple_tree}}', ['tree', 'lft', 'rgt']); $this->createIndex('rgt', '{{%multiple_tree}}', ['tree', 'rgt']);