Run "down" a migration instance.
435641
def _run_down(self, path, migration, pretend=False):
        
        migration_file = migration['migration']

        instance = self._resolve(path, migration_file)

        if pretend:
            return self._pretend_to_run(instance, 'down')

        instance.down()

        self._repository.delete(migration)

        self._note('<info>✓ Rolled back</info> %s' % migration_file)
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);
    }
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']);
            });
        }
    }
192401
def downgrade():
    """"""
    op.drop_table('transaction')
    if op._proxy.migration_context.dialect.supports_sequences:
        op.execute(DropSequence(Sequence('transaction_id_seq')))
374983
public function down()
    {
        try {
            $this->buildMapper(
               'ScContent.Migration.MapperBase.Content'
            )
            ->down();
        } catch (Exception $e) {
            //
        }

        try {
            $this->buildMapper(
                'ScContent.Migration.MapperBase.Search'
            )
            ->down();
        } catch (Exception $e) {
            //
        }

        try {
            $this->buildMapper(
                'ScContent.Migration.MapperBase.Garbage'
            )
            ->down();
        } catch (Exception $e) {
            //
        }

        try {
            $this->buildMapper(
                'ScContent.Migration.MapperBase.Layout'
            )
            ->down();
        } catch (Exception $e) {
            //
        }

        try {
            $this->buildMapper(
                'ScContent.Migration.MapperBase.Widgets'
            )
            ->down();
        } catch (Exception $e) {
            //
        }

        try {
            $this->buildMapper(
                'ScContent.Migration.MapperBase.Users'
            )
            ->down();
        } catch (Exception $e) {
            //
        }

        try {
            $this->buildMapper(
                'ScContent.Migration.MapperBase.Roles'
            )
            ->down();
        } catch (Exception $e) {
            //
        }

        try {
            $this->buildMapper(
                'ScContent.Migration.MapperBase.RolesLinker'
            )
            ->down();
        } catch (Exception $e) {
            //
        }
    }
154268
def _migrate_single(self, conn, migration):
        """"""
        with contextlib.ExitStack() as stack:
            for wrapper in self._wrappers:
                stack.enter_context(wrapper(conn))
            migration.func(conn)
555445
public function down()
    {
        $connection = config('admin.database.connection') ?: config('database.default');

        Schema::connection($connection)->dropIfExists(config('admin.database.administrator.table'));
        Schema::connection($connection)->dropIfExists(config('admin.database.role.table'));
        Schema::connection($connection)->dropIfExists(config('admin.database.permission.table'));
        Schema::connection($connection)->dropIfExists(config('admin.database.menu.table'));
        Schema::connection($connection)->dropIfExists(config('admin.database.role_user.table'));
        Schema::connection($connection)->dropIfExists(config('admin.database.role_permission.table'));
        Schema::connection($connection)->dropIfExists(config('admin.database.operation_log.table'));
    }
1296737
public function down()
    {
        if(Schema::hasColumn('laramanager_objectables', 'laramanager_object_id'))
        {
            Schema::table('laramanager_objectables', function (Blueprint $table) {
                $table->renameColumn('laramanager_object_id', 'object_id');
                $table->renameColumn('laramanager_objectable_id', 'objectable_id');
                $table->renameColumn('laramanager_objectable_type', 'objectable_type');
            });
        }
    }
143738
protected function runDown($migration, $pretend)
    {
        $file = $migration->migration;

        // First we will get the file name of the migration so we can resolve out an
        // instance of the migration. Once we get an instance we can either run a
        // pretend execution of the migration or we can run the real migration.
        $instance = $this->resolve($file);

        if ($pretend) {
            return $this->pretendToRun($instance, 'down');
        }

        $instance->down();

        // Once we have successfully run the migration "down" we will remove it from
        // the migration repository so it will be considered to have not been run
        // by the application then will be able to fire by any later operation.
        $this->repository->delete($migration);

        $this->note("<info>Rolled back:</info> $file");
    }
191491
def migrate(name=None, database=None, directory=None, verbose=None, fake=False):
    """"""
    router = get_router(directory, database, verbose)
    migrations = router.run(name, fake=fake)
    if migrations:
        click.echo('Migrations completed: %s' % ', '.join(migrations))
1078562
public function migrateDown()
    {
        Schema::table('tddd_runs', function (Blueprint $table) {
            $table->dropColumn('screenshots');
            $table->text('png')->nullable();
        });
    }
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');
            });
        }
    }
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');
        });
    }
1248568
public function down()
    {
        Schema::table('incidents', function (Blueprint $table) {
            $table->timestamp('scheduled_at')->before('created_at')->nullable()->default(null);
        });
    }
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');
            });
        }
	}
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');
            }
            );
        }
    }
984783
def migrate_down!(level = nil)
      migrations.sort.reverse.each do |migration|
        if level.nil?
          migration.perform_down()
        else
          migration.perform_down() if migration.position > level.to_i
        end
      end
    end