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) {
            
            if (DB::getDriverName() != 'sqlite') {
                $table->dropForeign(['plan_id']);
            }
            

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

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

            $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 .