Reverse the migrations.
979490
public function down()
    {
        Schema::dropIfExists(Config::get('amethyst.invoice.data.invoice.table'));
        Schema::dropIfExists(Config::get('amethyst.invoice.data.invoice-item.table'));
        Schema::dropIfExists(Config::get('amethyst.invoice.data.invoice-container.table'));
    }
192753
public function down()
    {
        Schema::table('content', function (Blueprint $table) {
            $table->string('identifier', 50)->nullable()->change();
            $table->dropIndex(['identifier']);
        });
    }
771334
public function down()
    {
        Schema::drop('postal_codes');
        Schema::drop('neighborhoods');
        Schema::drop('districts');
        Schema::drop('counties');
        Schema::drop('provinces');
    }
1207913
public function down(): void
    {
        Schema::table(config('rinvex.tags.tables.tags'), function (Blueprint $table) {
            $table->dropColumn('icon');
            $table->dropColumn('style');
        });
    }
869596
public function down()
    {
        // Check if the 2 tables exist
        if (Schema::hasTable('tags') && Schema::hasTable('taggables')) {
            if (! Schema::hasColumn('tags', 'tagable_id') && ! Schema::hasColumn('tags', 'tagable_type')) {
                Schema::table('tags', function($table) {
                    $table->integer('tagable_id')->default(1);
                    $table->string('tagable_type', 32)->default('type');
                });
                $tags = DB::table('tags')->get();
                foreach ($tags as $tag) {
                    $tagable = DB::table('taggables')->where('tag_id', '=', $tag->id)->first();
                    if ($tagable) {
                        // Points to old namespace Redooor\\Redminportal\\
                        $old_type_array = explode('\\', $tagable->taggable_type);
                        $last_model = array_pop($old_type_array);
                        $old_type = 'Redooor\\Redminportal\\' . $last_model;
                        DB::table('tags')
                            ->where('id', $tag->id)
                            ->update([
                                'tagable_id' => $tagable->taggable_id,
                                'tagable_type' => $old_type
                            ]);
                    }
                }
            }
        }
    }
512076
public function down()
    {
        Schema::table('users', function (Blueprint $table) {
            $table->string('access_token', 1024)->change();
            $table->string('refresh_token', 1024)->change();
        });

        Schema::table('clients', function (Blueprint $table) {
            $table->string('access_token', 1024)->change();
        });
    }
749385
public function down()
    {
        Schema::table('ticketit', function (Blueprint $table) {
            $table->dropIndex('ticketit_subject_index');
            $table->dropIndex('ticketit_status_id_index');
            $table->dropIndex('ticketit_priority_id_index');
            $table->dropIndex('ticketit_user_id_index');
            $table->dropIndex('ticketit_agent_id_index');
            $table->dropIndex('ticketit_category_id_index');
            $table->dropIndex('ticketit_completed_at_index');
        });

        Schema::table('ticketit_comments', function (Blueprint $table) {
            $table->dropIndex('ticketit_comments_user_id_index');
            $table->dropIndex('ticketit_comments_ticket_id_index');
        });

        Schema::table('ticketit_settings', function (Blueprint $table) {
            $table->dropIndex('ticketit_settings_lang_index');
            $table->dropIndex('ticketit_settings_slug_index');
        });
    }
857662
public function down()
    {
        Schema::table(
            'contents',
            function (Blueprint $table) {
                $table->removeColumn('type');
                $table->removeColumn('published');
            }
        );

        Schema::table(
            'revisions',
            function (Blueprint $table) {
                $table->removeColumn('published');
            }
        );
    }
774650
public function down()
    {
        Schema::table('forum_threads', function (Blueprint $table)
        {
            $table->boolean('pinned')->nullable(false)->default(null)->change();
            $table->boolean('locked')->nullable(false)->default(null)->change();
        });
    }
945295
public function down()
    {
        Schema::table(config('lern.record.table'), function(Blueprint $table) {
            $table->dropColumn('user_id');
            $table->dropColumn('data');
            $table->dropColumn('url');
            $table->dropColumn('method');
        });
    }
188489
public function down()
    {
        if (Schema::hasTable('lovata_buddies_users') && Schema::hasColumn('lovata_buddies_users', 'active_currency_code')) {
            Schema::table('lovata_buddies_users', function (Blueprint $obTable) {
                $obTable->dropColumn(['active_currency_code']);
            });
        }

        if (Schema::hasTable('users') && Schema::hasColumn('users', 'active_currency_code')) {
            Schema::table('users', function (Blueprint $obTable) {
                $obTable->dropColumn(['active_currency_code']);
            });
        }
    }
389399
public function down()
    {
        if (Schema::hasColumn('user', 'oauth_provider')) {
            Schema::table(
                'user',
                function (Blueprint $t){
                    $t->dropColumn('oauth_provider');
                }
            );
        }

        Schema::dropIfExists('oauth_config');
    }
201080
public function down()
    {
        Schema::connection(config('eyewitness.eyewitness_database_connection'))->table('eyewitness_io_schedulers', function (Blueprint $table) {
            $table->dropColumn('last_run');
        });
        Schema::connection(config('eyewitness.eyewitness_database_connection'))->table('eyewitness_io_schedulers', function (Blueprint $table) {
            $table->dropColumn('alert_last_run_greater_than');
        });
    }
1129913
public function down()
    {
        Schema::drop(Models::table('permissions'));
        Schema::drop(Models::table('assigned_roles'));
        Schema::drop(Models::table('roles'));
        Schema::drop(Models::table('abilities'));
    }
96211
public function down()
    {
        if (Schema::hasColumn('sql_db_config', 'driver')) {
            // back to pre-2.2
            Schema::table('sql_db_config', function (Blueprint $t){
                $t->string('driver')->nullable(false)->change();
                $t->string('dsn')->nullable(false)->change();
                $t->dropColumn('connection');
                $t->dropColumn('statements');
            }
            );
        }
    }
1236691
public function down()
    {
        Schema::table('block_beacons', function(Blueprint $table)
        {
            $table->dropColumn('type');
        });
        DB::table('settings')->whereIn('name', ['appid.estimote', 'key.estimote'])->delete();
    }
1190015
public function down()
    {
        $table_name = with(new User())->getTable();
        $table_columns = ['stripe_id', 'card_brand', 'card_last_four', 'trial_ends_at'];

        if (Schema::hasTable($table_name) and Schema::hasColumns($table_name, $table_columns)) {
            Schema::table($table_name, function (Blueprint $table) use ($table_columns) {
                $table->dropColumn($table_columns);
            });
        }
        Schema::dropIfExists('subscriptions');
    }