Reverse the migrations.

@return void
174128
public function migrateDown()
    {
        try {
            $this->builder->table(
                $this->table,
                function ($table) {
                    $table->string('name', 255)->change();
                    $table->unique('name');
                }
            );
        } catch (\Exception $e) {
        }
    }
360151
public function down()
    {
        if ( ! $this->hasConnection()) {
            Schema::dropIfExists($this->getTableName());

            return;
        }

        Schema::connection($this->getConnection())->dropIfExists($this->getTableName());
    }
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();
        });
    }
1024308
public function down()
    {
        Schema::drop('ab_experiments');
        Schema::drop('ab_events');
        Schema::drop('ab_instance');
        Schema::drop('ab_goal');

        \DB::connection()->getPdo()->exec("delete from migrations where migration = '2015_08_15_000001_create_ab_tables'");
        return true;
    }
335444
public function down()
    {
        //
        Schema::table('users', function ($table) {
            $table->dropColumn('tmpPwd');
            $table->dropColumn('status');
            $table->dropColumn('connection');
        });
    }
922402
public function down()
	{
        if(Schema::hasTable('hlogeon_scms_pages')){
            Schema::table('hlogeon_scms_pages', function(Blueprint $table){
                $table->dropColumn('reading_time');
                $table->dropColumn('user_id');
                $table->dropColumn('seo_title');
                $table->dropColumn('seo_description');
                $table->dropColumn('seo_keywords');
                DB::statement('ALTER TABLE hlogeon_scms_pages MODIFY COLUMN sidebar text');
            });
        }
	}
302300
public function down()
        {
                Schema::create('tags_old', function($table)
                {
                    $table->integer('post_id');
                    $table->string('tag');
                    $table->unique(array('post_id', 'tag'));
                });
                DB::statement('INSERT INTO tags_old(`post_id`, `tag`) SELECT `post_id`, `tag` FROM tags');
                Schema::drop('tags');
                Schema::rename('tags_old', 'tags');
        }
1354581
public function down()
    {
        Schema::table('hc_pages_translations', function (Blueprint $table) {
            $table->timestamp('publish_at')->default(DB::raw('CURRENT_TIMESTAMP'));
            $table->timestamp('expires_at')->nullable();
        });
    }
50497
public function down()
    {
        if (!Schema::hasColumn('jobs', 'reserved')) {
            Schema::table('jobs', function (Blueprint $table) {
                $table->tinyInteger('reserved')->unsigned();
            });
        }
        if (Schema::hasColumn('failed_jobs', 'reserved')) {
            Schema::table('failed_jobs', function (Blueprint $table) {
                $table->dropColumn('exception');
            });
        }
    }
376148
public function down()
    {
        $controller = DB::table('admin_controllers')->select('id')->where('controller', '=', 'adminsearch')->first();
        DB::table('admin_actions')->where('controller_id', '=', $controller->id)->where('action', '=', 'index')->delete();
        DB::table('admin_controllers')->where('id', '=', $controller->id)->delete();
    }
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');
        });
    }
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');
        });
    }
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
                    ]);
                }
            }
        }
    }
187288
public function down()
    {
        Schema::table('hc_menu', function (Blueprint $table) {
            $table->dropForeign(['language_code']);
            $table->dropForeign(['parent_id']);
            $table->dropForeign(['menu_type_id']);
        });

        Schema::drop('hc_menu');
    }
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
                            ]);
                    }
                }
            }
        }
    }
846092
public function down()
    {
        $controller = DB::table('admin_controllers')->select('id')->where('controller', '=', 'search')->first();
        $action = DB::table('admin_actions')->select('id')->where('name', '=', 'Search Log')->where('controller_id', '=', $controller->id)->first();


        DB::table('user_roles_actions')->where('action_id', '=', $action->id)->delete();
        DB::table('admin_actions')->where('id', '=', $action->id)->delete();
        DB::table('admin_controllers')->where('id', '=', $controller->id)->delete();
    }
1196137
public function down()
	{
        if(Schema::hasTable('hlogeon_scms_types')){
            if(Schema::hasColumns('hlogeon_scms_types', ['list_layout_id', 'enable_own_sidebar'])){
                Schema::table('hlogeon_scms_types', function(Blueprint $table){
                    $table->dropColumn('list_layout_id');
                    $table->dropColumn('type_layout_id');
                    $table->dropColumn('enable_own_sidebar');
                    $table->string('type_layout');
                });
            }
        }
    }