Reverse the migrations.

@return void
971754
public function down()
    {
        PermissionsManager::deleteRole('admin', 'Administrator');
        PermissionsManager::deleteRole('user', 'User');
        PermissionsManager::deleteRole('banned', 'Banned user');

        PermissionsManager::deletePermission('login', 'Allow login');
        PermissionsManager::deletePermission('panel', 'Allow access to admin panel');
    }
974411
public function down()
    {
        // Check if the table exists
        if (Schema::hasTable('translations')) {
            if (Schema::hasColumn('translations', 'translatable_type')) {
                $items = DB::select('select * from translations');
                foreach ($items as $item) {
                    // Points to old namespace Redooor\\Redminportal\\
                    $old_type_array = explode('\\', $item->translatable_type);
                    $last_model = array_pop($new_type_array);
                    $old_type = 'Redooor\\Redminportal\\' . $last_model;
                    DB::table('translations')->where('id', $item->id)
                        ->update([
                        'translatable_type' => $old_type
                    ]);
                }
            }
        }
    }
566889
public function down()
    {
        Schema::table(config('cms.db-prefix', '').'pages', function ($table) {
            $table->dropColumn('blocks');
        });

        Schema::table(config('cms.db-prefix', '').'blogs', function ($table) {
            $table->dropColumn('blocks');
        });

        Schema::table(config('cms.db-prefix', '').'events', function ($table) {
            $table->dropColumn('blocks');
        });
    }
1373120
public function down()
    {
        Schema::table('components', function (Blueprint $table) {
            $table->integer('user_id')->unsigned()->nullable()->default(null)->after('group_id');
        });
    }
765467
public function down()
    {
        $tableNames = config('permission.table_names');

        Schema::drop($tableNames['role_has_permissions']);
        Schema::drop($tableNames['model_has_roles']);
        Schema::drop($tableNames['model_has_permissions']);
        Schema::drop($tableNames['roles']);
        Schema::drop($tableNames['permissions']);
    }
192328
public function down()
    {
        Schema::table('laradrop_files', function ($table) {
            $table->dropColumn('parent_id');
            $table->dropColumn('lft');
            $table->dropColumn('rgt');
            $table->dropColumn('depth');
            $table->dropColumn('type');
            $table->dropColumn('meta');
            $table->dropColumn('public_resource_url');
            $table->dropColumn('alias');
            $table->dropColumn('has_thumbnail');
        });
    }
982832
public function down()
    {
        Schema::drop('watched_items');
        Schema::drop('failed_jobs');
        Schema::drop('delivery_options');
        Schema::drop('item_categories');
        Schema::drop('items');
        Schema::drop('item_conditions');
        Schema::drop('listing_durations');
        Schema::drop('categories');

        Schema::table('users', function (Blueprint $table) {
            $table->string('username', 255)->change();
            $table->string('email', 255)->change();
            $table->string('password', 60)->change();
            $table->dropColumn('locale');
            $table->dropColumn('currency');
            $table->dropColumn('joined');
            $table->dropColumn('last_login');
            $table->dropColumn('notifications');
            $table->timestamps();

            $table->renameColumn('user_id', 'id');
            $table->renameColumn('username', 'name');
        });
    }
473603
public function down()
    {
        Schema::create('component_tag', function (Blueprint $table) {
            $table->engine = 'InnoDB';

            $table->increments('id');
            $table->integer('component_id');
            $table->integer('tag_id');

            $table->index('component_id');
            $table->index('tag_id');
        });
    }
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');
    }
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');
        });
    }
58915
public function down()
    {
        $connection = config('admin.database.connection') ?: config('database.default');

        $table = config('admin.extensions.reporter.table', 'laravel_exceptions');

        Schema::connection($connection)->dropIfExists($table);
    }
168928
public function down()
    {
        Schema::table('nodes', function (Blueprint $table) {
            $table->dropUnique('nodes_id_unique');
            $table->dropUnique('nodes_content_type_content_id_unique');

            $table->dropIndex('nodes_slug_index');
            $table->dropIndex('nodes_parent_id_index');
            $table->dropIndex('nodes_lft_index');
            $table->dropIndex('nodes_rgt_index');
            $table->dropIndex('nodes_active_index');
        });
    }
912177
public function down()
    {
        Schema::drop('mediables');

        Media::all()->each(function ($media) {
            $media->delete();
        });

        Schema::drop('media');
    }
29695
public function down()
    {
        Schema::drop('sites');
        Schema::drop('asset_site');
        Schema::drop('person_site');

        Schema::table('pages', function (Blueprint $table) {
            $table->dropColumn(Page::ATTR_SITE);
        });

        Schema::table('groups', function (Blueprint $table) {
            $table->dropColumn(Group::ATTR_SITE);
        });

        Schema::table('tags', function (Blueprint $table) {
            $table->dropColumn(Group::ATTR_SITE);
        });

        Schema::table('page_urls', function (Blueprint $table) {
            $table->dropColumn(Page::ATTR_SITE);
            $table->dropUnique('page_urls_site_id_location');
        });
    }
1148085
public function down()
    {
        \Schema::table(Config::get('b3cod4x.usertable'), function (Blueprint $table){
            $table->dropColumn('guid');
            $table->dropColumn('claimCode');
        });

    }
389399
public function down()
    {
        if (Schema::hasColumn('user', 'oauth_provider')) {
            Schema::table(
                'user',
                function (Blueprint $t){
                    $t->dropColumn('oauth_provider');
                }
            );
        }

        Schema::dropIfExists('oauth_config');
    }
1334219
public function down()
    {
        Schema::table(config('combine-core.tablePrefix', 'combine') . '_members', function (Blueprint $table) {
            $table->dropForeign(config('combine-core.tablePrefix', 'combine') . '_members_member_category_id_foreign');
            $table->dropColumn('member_category_id');
        });
    }