08453431
Yarik
first commit
|
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
|
<?php
use yii\db\Migration;
class m160829_104745_create_table_language extends Migration
{
public function up()
{
$this->createTable(
'{{%language}}',
[
'id' => $this->primaryKey(),
'url' => $this->string()
->notNull(),
'local' => $this->string()
->notNull(),
'name' => $this->string()
->notNull(),
'default' => $this->boolean()
->notNull()
->defaultValue(false),
'created_at' => $this->integer()
->notNull(),
'updated_at' => $this->integer()
->notNull(),
]
);
}
public function down()
{
$this->dropTable('{{%language}}');
}
}
|