From 000cc4c93bab85c1fa6ecc984a14d3c8906728e1 Mon Sep 17 00:00:00 2001 From: PaulZi Date: Tue, 30 May 2017 17:32:47 +0300 Subject: [PATCH] Signed depth warning --- README.md | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/README.md b/README.md index 72756d5..e18f544 100644 --- a/README.md +++ b/README.md @@ -25,7 +25,7 @@ to the `require` section of your `composer.json` file. ## Migrations example -Warning! `depth` attribute can not be unsigned! +**Warning! `depth` attribute can not be unsigned!** Single tree migration: @@ -43,7 +43,7 @@ class m150722_150000_single_tree extends Migration 'id' => Schema::TYPE_PK, 'lft' => Schema::TYPE_INTEGER . ' NOT NULL', 'rgt' => Schema::TYPE_INTEGER . ' NOT NULL', - 'depth' => Schema::TYPE_INTEGER . ' NOT NULL', + 'depth' => Schema::TYPE_INTEGER . ' NOT NULL', // not unsigned! 'name' => Schema::TYPE_STRING . ' NOT NULL', // example field ], $tableOptions); $this->createIndex('lft', '{{%single_tree}}', ['lft', 'rgt']); @@ -69,7 +69,7 @@ class m150722_150100_multiple_tree extends Migration 'tree' => Schema::TYPE_INTEGER . ' NULL', 'lft' => Schema::TYPE_INTEGER . ' NOT NULL', 'rgt' => Schema::TYPE_INTEGER . ' NOT NULL', - 'depth' => Schema::TYPE_INTEGER . ' NOT NULL', + 'depth' => Schema::TYPE_INTEGER . ' NOT NULL', // not unsigned! 'name' => Schema::TYPE_STRING . ' NOT NULL', // example field ], $tableOptions); $this->createIndex('lft', '{{%multiple_tree}}', ['tree', 'lft', 'rgt']);