guild/console/migrations/m210703_114553_create_interview_request_table.php

34 lines
768 B
PHP
Raw Normal View History

2021-07-03 15:15:54 +03:00
<?php
use yii\db\Migration;
/**
* Handles the creation of table `{{%interview_request}}`.
*/
class m210703_114553_create_interview_request_table extends Migration
{
/**
* {@inheritdoc}
*/
public function safeUp()
{
$this->createTable('{{%interview_request}}', [
'id' => $this->primaryKey(),
'email' => $this->string(255)->notNull(),
'phone' => $this->string(255),
'profile_id' => $this->integer(11),
'user_id' => $this->integer(11),
'comment' => $this->text(),
'created_at' => $this->integer(11),
]);
}
/**
* {@inheritdoc}
*/
public function safeDown()
{
$this->dropTable('{{%interview_request}}');
}
}