| Conditions | 1 |
| Paths | 1 |
| Total Lines | 34 |
| Code Lines | 22 |
| Lines | 0 |
| Ratio | 0 % |
| Changes | 0 | ||
| 1 | <?php |
||
| 13 | public function safeUp() |
||
| 14 | { |
||
| 15 | $this->createMultiLanguageTable('pages', |
||
| 16 | [ |
||
| 17 | 'title' => $this->string(128)->notNull(), |
||
| 18 | 'description' => $this->text(), |
||
| 19 | 'content' => $this->text(), |
||
| 20 | 'metaKeys' => $this->string(128), |
||
| 21 | 'metaDescription' => $this->string(), |
||
| 22 | ], |
||
| 23 | [ |
||
| 24 | 'parentId' => $this->integer(), |
||
| 25 | 'active' => $this->tinyInteger()->notNull()->defaultValue(0), |
||
| 26 | 'icon' => $this->string(128), |
||
| 27 | 'alias' => $this->string(128), |
||
| 28 | ] |
||
| 29 | ); |
||
| 30 | |||
| 31 | $this->createIndex( |
||
| 32 | 'idx-pages-parentId', |
||
| 33 | 'pages', |
||
| 34 | 'parentId' |
||
| 35 | ); |
||
| 36 | |||
| 37 | $this->createIndex( |
||
| 38 | 'idx-pages-active', |
||
| 39 | 'pages', |
||
| 40 | 'active' |
||
| 41 | ); |
||
| 42 | |||
| 43 | $this->createIndex( |
||
| 44 | 'idx-pages-alias', |
||
| 45 | 'pages', |
||
| 46 | 'alias' |
||
| 47 | ); |
||
| 73 |