Skip to content

Commit 3c7d076

Browse files
authored
Merge pull request #79 from nepster-web/patch-1
Update README.md
2 parents ac447e9 + 17914b5 commit 3c7d076

File tree

1 file changed

+6
-6
lines changed

1 file changed

+6
-6
lines changed

README.md

Lines changed: 6 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -38,12 +38,12 @@ inside the `up()` method add the following
3838

3939
```php
4040
$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',
41+
'id' => $this->primaryKey(),
42+
//'tree' => $this->integer()->notNull(),
43+
'lft' => $this->integer()->notNull(),
44+
'rgt' => $this->integer()->notNull(),
45+
'depth' => $this->integer()->notNull(),
46+
'name' => $this->string()->notNull(),
4747
]);
4848
```
4949

0 commit comments

Comments
 (0)