1
0
Fork 0
mirror of https://github.com/janickiy/yii2-nomer synced 2025-02-12 10:01:52 +00:00
yii2-nomer/migrations/m170822_144033_create_ticket_comments_table.php
2020-02-05 06:34:26 +03:00

32 lines
687 B
PHP

<?php
use yii\db\Migration;
/**
* Handles the creation of table `ticket_comments`.
*/
class m170822_144033_create_ticket_comments_table extends Migration
{
/**
* @inheritdoc
*/
public function up()
{
$this->createTable('ticket_comments', [
'id' => $this->primaryKey(),
'ticket_id' => $this->integer(),
'user_id' => $this->integer(),
'text' => $this->text(),
'tm_create' => $this->timestamp(),
'tm_read' => $this->timestamp()
]);
}
/**
* @inheritdoc
*/
public function down()
{
$this->dropTable('ticket_comments');
}
}