src/mako/application/cli/commands/migrations/Command.php
protected function getMigrationsFilteredByConnection(): array
	{
		$migrations = $this->findMigrations();

		$connectionName = $this->getConnectionName();

		$defaultConnectionName = $this->getDefaultConnectionName();

		foreach($migrations as $key => $migration)
		{
			$migrationConnectionName = (new ReflectionClass($this->getFullyQualifiedMigration($migration)))
			->newInstanceWithoutConstructor()
			->getConnectionName() ?? $defaultConnectionName;

			if($connectionName !== $migrationConnectionName)
			{
				unset($migrations[$key]);
			}
		}

		return $migrations;
	}
protected function getMigrationsFilteredByConnection(): array
	{
		$migrations = $this->findMigrations();

		$connectionName = $this->getConnectionName();

		$defaultConnectionName = $this->getDefaultConnectionName();

		foreach($migrations as $key => $migration)
		{
			$migrationConnectionName = (new ReflectionClass($this->getFullyQualifiedMigration($migration)))
			->newInstanceWithoutConstructor()
			->getConnectionName() ?? $defaultConnectionName;

			if($connectionName !== $migrationConnectionName)
			{
				unset($migrations[$key]);
			}
		}

		return $migrations;
	}
protected function getMigrationsFilteredByConnection ( ) : array { $ migrations = $ this -> findMigrations ( ) ; $ connectionName = $ this -> getConnectionName ( ) ; $ defaultConnectionName = $ this -> getDefaultConnectionName ( ) ; foreach ( $ migrations as $ key => $ migration ) { $ migrationConnectionName = ( new ReflectionClass ( $ this -> getFullyQualifiedMigration ( $ migration ) ) ) -> newInstanceWithoutConstructor ( ) -> getConnectionName ( ) ?? $ defaultConnectionName ; if ( $ connectionName !== $ migrationConnectionName ) { unset ( $ migrations [ $ key ] ) ; } } return $ migrations ; }
Returns migrations filtered by connection name.

@return array
Returns migrations filtered by connection name .