4bf42036
Alexey Boroda
-Modals ready
|
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
|
<?php
use yii\db\Migration;
class m161228_143104_emails extends Migration
{
public function up()
{
$this->createTable('emails', [
'id' => $this->primaryKey(),
'username' => $this->string(),
'email' => $this->string(),
'phone' => $this->string(),
'message' => $this->text(),
'date_from' => $this->integer(),
'date_to' => $this->integer(),
'date_count' => $this->integer(),
]);
}
public function down()
{
$this->dropTable('emails');
}
}
|