<?php

use yii\db\Migration;
use yii\db\Schema;

class m161125_091622_add_champs_commande_auto extends Migration
{
    public function up()
    {
        $this->addColumn('commande_auto', 'id_point_vente', Schema::TYPE_INTEGER.' NOT NULL') ;
        $this->addColumn('commande', 'type', Schema::TYPE_STRING) ;
    }

    public function down()
    {
        $this->dropColumn('commande_auto', 'id_point_vente') ;
        $this->dropColumn('commande', 'type') ;
    }

    /*
    // Use safeUp/safeDown to run migration code within a transaction
    public function safeUp()
    {
    }

    public function safeDown()
    {
    }
    */
}