database/migrations/2017_02_02_202726_drop_customer_sales_table.php
/**
     * Reverse the migrations.
     *
     * @return void
     */
Reverse the migrations.
@return void
Reverse the migrations . @return void
public function down()
    {
        Schema::create('customer_sales', function (Blueprint $table) {
            $table->integer('customer_id');
            $table->integer('sale_id');
            $table->string('file_id');
            $table->enum('type', ['gas','power','gas power']);
            $table->unique(['customer_id', 'sale_id']);
        });
    }
public function down ( ) { Schema :: create ( 'customer_sales' , function ( Blueprint $ table ) { $ table -> integer ( 'customer_id' ) ; $ table -> integer ( 'sale_id' ) ; $ table -> string ( 'file_id' ) ; $ table -> enum ( 'type' , [ 'gas' , 'power' , 'gas power' ] ) ; $ table -> unique ( [ 'customer_id' , 'sale_id' ] ) ; } ) ; }
Reverse the migrations.
Reverse the migrations .