Logo white

Alexey Boroda / kristal-estet

Sign in
  • Sign in
  • Project
  • Files
  • Commits
  • Network
  • Graphs
  • Milestones
  • Issues 0
  • Merge Requests 0
  • Labels
  • Wiki
  • kristal-estet
  • console
  • migrations
  • m171109_143936_add_time_column_to_fee...
  • sending email
    735ae87f
    Timur Kastemirov authored
    2017-11-09 19:17:16 +0200  
    Browse Code ยป
m171109_143936_add_time_column_to_feedback_table.php 416 Bytes
Edit Raw Blame History
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;

/**
 * Handles adding time to table `feedback`.
 */
class m171109_143936_add_time_column_to_feedback_table extends Migration
{
    /**
     * @inheritdoc
     */
    public function up()
    {
        $this->addColumn('feedback', 'time', $this->string());
    }

    /**
     * @inheritdoc
     */
    public function down()
    {
        $this->dropColumn('feedback', 'time');
    }
}