3b1725bf
Alexey Boroda
-Bug with fill re...
|
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
|
<?php
use yii\db\Migration;
class m161101_142334_blog_article extends Migration
{
public function up()
{
/**
* Create main table with blog's articles
*/
$this->createTable(
'blog_article',
[
'id' => $this->primaryKey(),
|
3b1725bf
Alexey Boroda
-Bug with fill re...
|
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
|
'created_at' => $this->integer(),
'updated_at' => $this->integer(),
'deleted_at' => $this->integer(),
'sort' => $this->integer(),
'status' => $this->boolean(),
'author_id' => $this->integer(),
]
);
}
public function down()
{
$this->dropTable('blog_article');
}
}
|