public function forgetMigration($tableName, $name)
    {
        $capsules = $this->all();
        $keep = [];

        foreach ($capsules as $capsule) {
            if ($capsule->tableName == $tableName) {
                $key = $capsule->getMigrationIndex($name);
                $capsule->forgetMigration($key);
            }

            $keep[] = $capsule;
        }

        $this->write($keep);

        return $keep;
    }
public function forgetMigration($tableName, $name)
    {
        $capsules = $this->all();
        $keep = [];

        foreach ($capsules as $capsule) {
            if ($capsule->tableName == $tableName) {
                $key = $capsule->getMigrationIndex($name);
                $capsule->forgetMigration($key);
            }

            $keep[] = $capsule;
        }

        $this->write($keep);

        return $keep;
    }
public function forgetMigration ( $ tableName , $ name ) { $ capsules = $ this -> all ( ) ; $ keep = [ ] ; foreach ( $ capsules as $ capsule ) { if ( $ capsule -> tableName == $ tableName ) { $ key = $ capsule -> getMigrationIndex ( $ name ) ; $ capsule -> forgetMigration ( $ key ) ; } $ keep [ ] = $ capsule ; } $ this -> write ( $ keep ) ; return $ keep ; }
Remove a migration entry from the file given the table name and migration name.

@param string $tableName
@param string $name

@return array
Remove a migration entry from the file given the table name and migration name .