Logo white

Eugeny Galkovskiy / land-artbox

Sign in
  • Sign in
  • Project
  • Files
  • Commits
  • Network
  • Graphs
  • Milestones
  • Issues 0
  • Merge Requests 0
  • Labels
  • Wiki
  • land-artbox
  • console
  • migrations
  • m170707_104149_add_subject_column_to_...
  • Загрузка изображений
    595ab5a0
    Eugeny Galkovskiy authored
    2017-07-07 17:25:31 +0300  
    Browse Code »
m170707_104149_add_subject_column_to_feedback_table.php 417 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 subject to table `feedback`.
 */
class m170707_104149_add_subject_column_to_feedback_table extends Migration
{
    /**
     * @inheritdoc
     */
    public function up()
    {
        $this->addColumn('feedback', 'subject', $this->string());
    }

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