|
|
@ -194,7 +194,7 @@ class m150101_185401_create_news_table extends Migration |
|
|
|
public function safeUp() |
|
|
|
public function safeUp() |
|
|
|
{ |
|
|
|
{ |
|
|
|
$this->createTable('news', [ |
|
|
|
$this->createTable('news', [ |
|
|
|
'id' => $this->primaryKey(),, |
|
|
|
'id' => $this->primaryKey(), |
|
|
|
'title' => $this->string()->notNull(), |
|
|
|
'title' => $this->string()->notNull(), |
|
|
|
'content' => $this->text(), |
|
|
|
'content' => $this->text(), |
|
|
|
]); |
|
|
|
]); |
|
|
|