src/Schema/State.php
public function remountElements()
    {
        $columns = [];
        foreach ($this->columns as $column) {
            $columns[$column->getName()] = $column;
        }

        $indexes = [];
        foreach ($this->indexes as $index) {
            $indexes[$index->getName()] = $index;
        }

        $foreignKeys = [];
        foreach ($this->foreignKeys as $foreignKey) {
            $foreignKeys[$foreignKey->getName()] = $foreignKey;
        }

        $this->columns = $columns;
        $this->indexes = $indexes;
        $this->foreignKeys = $foreignKeys;
    }
public function remountElements()
    {
        $columns = [];
        foreach ($this->columns as $column) {
            $columns[$column->getName()] = $column;
        }

        $indexes = [];
        foreach ($this->indexes as $index) {
            $indexes[$index->getName()] = $index;
        }

        $foreignKeys = [];
        foreach ($this->foreignKeys as $foreignKey) {
            $foreignKeys[$foreignKey->getName()] = $foreignKey;
        }

        $this->columns = $columns;
        $this->indexes = $indexes;
        $this->foreignKeys = $foreignKeys;
    }
public function remountElements ( ) { $ columns = [ ] ; foreach ( $ this -> columns as $ column ) { $ columns [ $ column -> getName ( ) ] = $ column ; } $ indexes = [ ] ; foreach ( $ this -> indexes as $ index ) { $ indexes [ $ index -> getName ( ) ] = $ index ; } $ foreignKeys = [ ] ; foreach ( $ this -> foreignKeys as $ foreignKey ) { $ foreignKeys [ $ foreignKey -> getName ( ) ] = $ foreignKey ; } $ this -> columns = $ columns ; $ this -> indexes = $ indexes ; $ this -> foreignKeys = $ foreignKeys ; }
Remount elements under their current name.
Remount elements under their current name .