Conditions | 1 |
Paths | 1 |
Total Lines | 19 |
Code Lines | 15 |
Lines | 0 |
Ratio | 0 % |
Changes | 1 | ||
Bugs | 0 | Features | 0 |
1 | <?php |
||
13 | public function safeUp() |
||
14 | { |
||
15 | $now = time(); |
||
16 | $this->insert($this->tableName, [ |
||
17 | 'id' => 1, |
||
18 | 'title' => 'Hello World', |
||
19 | 'creator' => 1, |
||
20 | 'author' => 'Administrator', |
||
21 | 'category_id' => 1, |
||
22 | 'summary' => 'Congratulation! You have set up Yii2 and Vue application.', |
||
23 | 'cover' => '', |
||
24 | 'release_time' => $now, |
||
25 | 'create_time' => $now, |
||
26 | 'update_time' => $now, |
||
27 | ]); |
||
28 | |||
29 | $this->insert($this->metaTableName, [ |
||
30 | 'article_id' => 1, |
||
31 | 'content' => '<h1>Congratulation!</h1><p>You have set up Yii2 and Vue application.</p>', |
||
32 | ]); |
||
41 |