library/Services/Library/DatabaseRestorer/DatabaseRestorer.php
public function restoreTable($table, $restoreColumns = false)
    {
        $dumpChecksum = $this->getDumpChecksum();
        $currentChecksum = $this->getTableChecksum($table);

        if ($currentChecksum[$table] === $dumpChecksum[$table]) {
            return false;
        }

        if ($restoreColumns) {
            $this->restoreColumns($table);
        }

        $this->resetTable($table);
        return true;
    }
public function restoreTable($table, $restoreColumns = false)
    {
        $dumpChecksum = $this->getDumpChecksum();
        $currentChecksum = $this->getTableChecksum($table);

        if ($currentChecksum[$table] === $dumpChecksum[$table]) {
            return false;
        }

        if ($restoreColumns) {
            $this->restoreColumns($table);
        }

        $this->resetTable($table);
        return true;
    }
public function restoreTable ( $ table , $ restoreColumns = false ) { $ dumpChecksum = $ this -> getDumpChecksum ( ) ; $ currentChecksum = $ this -> getTableChecksum ( $ table ) ; if ( $ currentChecksum [ $ table ] === $ dumpChecksum [ $ table ] ) { return false ; } if ( $ restoreColumns ) { $ this -> restoreColumns ( $ table ) ; } $ this -> resetTable ( $ table ) ; return true ; }
Restores table records

@param string $table           Table to restore
@param bool   $restoreColumns whether to check and restore table columns

@return bool whether table had changes
Restores table records