getMigrationHistory() public method

Check each modules for new migrations
public getMigrationHistory ( string $module, integer $limit = 20 ) : mixed
$module string - required module
$limit integer - limit of array
return mixed version and apply time
 /**
  * Check, if NestedSets Migration exists in DB.
  * @param  Migrator $migrator
  * @return bool
  */
 public function NsMigrationExists(Migrator $migrator)
 {
     $history = $migrator->getMigrationHistory('comment');
     if (array_key_exists(self::NS_MIGRATION_NAME, $history)) {
         return true;
     }
     return false;
 }