src/ShopifyApp/resources/database/migrations/2018_08_31_154001_add_plan_to_shops_table_and_charges_table.php
public function down()
    {
        Schema::table('charges', function (Blueprint $table) {
            // @codeCoverageIgnoreStart
            if (DB::getDriverName() != 'sqlite') {
                $table->dropForeign(['plan_id']);
            }
            // @codeCoverageIgnoreEnd

            $table->dropColumn(['plan_id']);
        });

        Schema::table('shops', function (Blueprint $table) {
            // @codeCoverageIgnoreStart
            if (DB::getDriverName() != 'sqlite') {
                $table->dropForeign(['plan_id']);
            }
            // @codeCoverageIgnoreEnd

            $table->dropColumn(['plan_id']);
        });
    }
public function down()
    {
        Schema::table('charges', function (Blueprint $table) {
            // @codeCoverageIgnoreStart
            if (DB::getDriverName() != 'sqlite') {
                $table->dropForeign(['plan_id']);
            }
            // @codeCoverageIgnoreEnd

            $table->dropColumn(['plan_id']);
        });

        Schema::table('shops', function (Blueprint $table) {
            // @codeCoverageIgnoreStart
            if (DB::getDriverName() != 'sqlite') {
                $table->dropForeign(['plan_id']);
            }
            // @codeCoverageIgnoreEnd

            $table->dropColumn(['plan_id']);
        });
    }
public function down ( ) { Schema :: table ( 'charges' , function ( Blueprint $ table ) { // @codeCoverageIgnoreStart if ( DB :: getDriverName ( ) != 'sqlite' ) { $ table -> dropForeign ( [ 'plan_id' ] ) ; } // @codeCoverageIgnoreEnd $ table -> dropColumn ( [ 'plan_id' ] ) ; } ) ; Schema :: table ( 'shops' , function ( Blueprint $ table ) { // @codeCoverageIgnoreStart if ( DB :: getDriverName ( ) != 'sqlite' ) { $ table -> dropForeign ( [ 'plan_id' ] ) ; } // @codeCoverageIgnoreEnd $ table -> dropColumn ( [ 'plan_id' ] ) ; } ) ; }
Reverse the migrations.

@return void
Reverse the migrations .