Reverse the migrations.

@return void
438133
public function down()
    {
        Schema::table('notifications', function ($table) {
            $driver = Config::get('database.driver');

            if ($driver === 'mysql' || $driver === 'sqlite') {
                DB::statement('ALTER TABLE notifications MODIFY COLUMN extra STRING(255)');
            } elseif ($driver === 'pgsql') {
                DB::statement('ALTER TABLE notifications ALTER COLUMN extra TYPE string USING code::json');
            }
        });
    }
491213
public function down()
    {
        Schema::table('hc_resource_grab_property', function (Blueprint $table) {
            $table->dropColumn(['width', 'height']);
            $table->integer('x')->change();
            $table->integer('y')->change();
        });
    }
1045421
public function down()
    {
        $record = new MigrationRecord();
        if ($this->connection !== null) {
            $record->setConnection($this->connection);
        }
        $record->where('migration', $this->name)->delete();
    }
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');
            });
        }
	}
546915
public function down()
	{
		Schema::connection('ff-qiwi-gate')->table('merchants_bills', function (Blueprint $table) {
			$table->dropColumn('pay_source');
		});
		Schema::connection('ff-qiwi-gate')->table('merchants_bills', function (Blueprint $table) {
			$table->string('pay_source')->after('lifetime')->default('qw');;
		});
	}
710057
public function down()
    {
        if (Schema::hasTable('email_template') && Schema::hasColumn('email_template', 'attachment')) {
            Schema::table('email_template', function (Blueprint $t){
                $t->dropColumn('attachment');
            });
        }
    }
502351
public function down()
    {
        Schema::table('page_versions', function (Blueprint $table) {
            $table->renameColumn('created_at', 'edited_time');
            $table->renameColumn('created_by', 'edited_by');
        });

        Schema::table('asset_versions', function (Blueprint $table) {
            $table->renameColumn('created_at', 'edited_at');
            $table->renameColumn('created_by', 'edited_by');
        });

        Schema::table('assets', function (Blueprint $table) {
            $table->renameColumn('created_at', 'uploaded_time');
            $table->renameColumn('created_by', 'uploaded_by');
        });

        Schema::table('pages', function (Blueprint $table) {
            $table->renameColumn('created_at', 'created_time');
        });
    }
601730
public function down()
    {
        Schema::table('notifications', function (Blueprint $table) {
            $table->renameColumn('expires_at', 'expire_time');
        });
        Schema::table('notifications', function (Blueprint $table) {
            $table->bigInteger('from_id')->unsigned()->change();
        });
    }
257701
public function down()
    {

        Schema::table('group_role', function (Blueprint $table) {

            $table->dropColumn('not');
        });

        Schema::table('permission_role', function (Blueprint $table) {

            $table->dropColumn('not');
        });

        Schema::table('affiliation_user', function (Blueprint $table) {

            $table->dropColumn('not');
        });

        Schema::table('affiliation_role', function (Blueprint $table) {

            $table->dropColumn('not');
        });
    }
680065
public function down()
    {
        if (Schema::hasColumn('user_config', 'alt_auth_db_service_id')) {
            Schema::table('user_config', function (Blueprint $t){
                $t->dropForeign('user_config_alt_auth_db_service_id_foreign');
                $t->dropColumn('alt_auth_db_service_id');
                $t->dropColumn('alt_auth_table');
                $t->dropColumn('alt_auth_username_field');
                $t->dropColumn('alt_auth_password_field');
                $t->dropColumn('alt_auth_email_field');
                $t->dropColumn('alt_auth_other_fields');
                $t->dropColumn('alt_auth_filter');
            });
        }
    }
586915
public function down()
    {
        Schema::dropIfExists('users');
        Schema::create('users', function (Blueprint $table) {
            $table->increments('id');
            $table->string('name');
            $table->string('email')->unique();
            $table->string('password');
            $table->rememberToken();
            $table->timestamps();
        });
    }
1343229
public function down()
    {
        $activity = new Activity();
        $connection = $activity->getConnectionName();
        $table = $activity->getTableName();

        Schema::connection($connection)->dropIfExists($table);
    }
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();
        });
    }
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
                            ]);
                    }
                }
            }
        }
    }
612174
public function down()
	{
		Schema::table('social_profiles', function($table) {
			$table->dropColumn('profile_url');
			$table->dropColumn('website_url');
			$table->dropColumn('photo_url');
			$table->dropColumn('display_name');
			$table->dropColumn('description');
			$table->dropColumn('first_name');
			$table->dropColumn('last_name');
			$table->dropColumn('gender');
			$table->dropColumn('language');
			$table->dropColumn('age');
			$table->dropColumn('birth_day');
			$table->dropColumn('birth_month');
			$table->dropColumn('birth_year');
			$table->dropColumn('email');
			$table->dropColumn('verified_email');
			$table->dropColumn('phone');
			$table->dropColumn('address');
			$table->dropColumn('country');
			$table->dropColumn('region');
			$table->dropColumn('city');
			$table->dropColumn('zip');
		});
	}
646368
public function down()
    {
        Schema::table('users', function (Blueprint $table) {
            $table->dropColumn('auth_type');
        });

        // Uncomment the section below if the users table was created above.
//        // Drop the users table.
//        Schema::drop('users');

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

        // Uncomment the section below if the groups table was created above.
//        // Drop the groups table.
//        Schema::drop('groups');
//        // Drop the group user link table.
//        Schema::drop('group_user');
    }
1103751
public function down()
    {
        $twoStepAuth = new TwoStepAuth();
        $connection = $twoStepAuth->getConnectionName();
        $table = $twoStepAuth->getTableName();

        Schema::connection($connection)->dropIfExists($table);
    }