public function isUpdateRequired(): bool
    {
        $history = $this->fetchHistory();

        if (!empty($history)) {
            $this->setDummyMigrationClass();

            foreach ($history as $migration => $time) {
                $migration = trim($migration, '\\');
                if (in_array($migration, $this->skipMigrations, true)) {
                    continue;
                }

                if (!$this->gatherChanges($this->extract($migration))) {
                    break;
                }
            }

            return $this->compareStructures();
        }

        return true;
    }
public function isUpdateRequired(): bool
    {
        $history = $this->fetchHistory();

        if (!empty($history)) {
            $this->setDummyMigrationClass();

            foreach ($history as $migration => $time) {
                $migration = trim($migration, '\\');
                if (in_array($migration, $this->skipMigrations, true)) {
                    continue;
                }

                if (!$this->gatherChanges($this->extract($migration))) {
                    break;
                }
            }

            return $this->compareStructures();
        }

        return true;
    }
public function isUpdateRequired ( ) : bool { $ history = $ this -> fetchHistory ( ) ; if ( ! empty ( $ history ) ) { $ this -> setDummyMigrationClass ( ) ; foreach ( $ history as $ migration => $ time ) { $ migration = trim ( $ migration , '\\' ) ; if ( in_array ( $ migration , $ this -> skipMigrations , true ) ) { continue ; } if ( ! $ this -> gatherChanges ( $ this -> extract ( $ migration ) ) ) { break ; } } return $ this -> compareStructures ( ) ; } return true ; }
Checks if new updating migration is required.
@return bool
@throws ErrorException
@throws NotSupportedException
Checks if new updating migration is required .