We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
2 parents ac447e9 + 17914b5 commit 3c7d076Copy full SHA for 3c7d076
README.md
@@ -38,12 +38,12 @@ inside the `up()` method add the following
38
39
```php
40
$this->createTable('{{%menu}}', [
41
- 'id' => Schema::TYPE_PK,
42
- // 'tree' => Schema::TYPE_INTEGER,
43
- 'lft' => Schema::TYPE_INTEGER . ' NOT NULL',
44
- 'rgt' => Schema::TYPE_INTEGER . ' NOT NULL',
45
- 'depth' => Schema::TYPE_INTEGER . ' NOT NULL',
46
- 'name' => Schema::TYPE_STRING . ' NOT NULL',
+ 'id' => $this->primaryKey(),
+ //'tree' => $this->integer()->notNull(),
+ 'lft' => $this->integer()->notNull(),
+ 'rgt' => $this->integer()->notNull(),
+ 'depth' => $this->integer()->notNull(),
+ 'name' => $this->string()->notNull(),
47
]);
48
```
49
0 commit comments