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;
	}