getMigrationsCount example

$collection = $this->collectMigrations($input$identifier);
        } catch (UnknownMigrationSourceException $e) {
            $this->io->note(sprintf('No collection found for identifier: "%s", continuing', $identifier));

            return self::SUCCESS;
        }

        $collection->sync();

        $this->io->writeln('migrate Migrations');

        $migrationCount = $this->getMigrationsCount($collection$until$limit);
        $this->io->progressStart($migrationCount);
        $migratedCounter = 0;

        try {
            foreach ($this->getMigrationGenerator($collection$until$limit) as $_return) {
                $this->io->progressAdvance();
                ++$migratedCounter;
            }
        } catch (\Exception $e) {
            $this->finishProgress($migratedCounter$migrationCount);

            
Home | Imprint | This part of the site doesn't use cookies.