collectMigrations example


                ['Migrated', $migrated . ' out of ' . $total],
            ]
        );
    }

    private function runMigrationForIdentifier(InputInterface $input, string $identifier, int $limit, ?int $until): int
    {
        $this->io->writeln(sprintf('Get collection for identifier: "%s"', $identifier));

        try {
            $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);
        
/** * No en-GB as language, de-LI as Default language and de-DE as second language * All en-GB contents should be written in de-LI and de-De contents will be written in de-DE */
    public function testMigrationWithoutEnGb(): void
    {
        $orgConnection = $this->getContainer()->get(Connection::class);
        $orgConnection->rollBack();

        $connection = $this->setupDB($orgConnection);

        $migrationCollection = $this->collectMigrations();

        foreach ($migrationCollection->getMigrationSteps() as $_className => $migration) {
            try {
                $migration->update($connection);
            } catch (\Exception $e) {
                static::fail($_className . \PHP_EOL . $e->getMessage());
            }

            if ($this->isBasicDataMigration($_className)) {
                $deLiLocale = $connection->fetchAssociative(
                    'SELECT * FROM `locale` WHERE `code` = :code',
                    [
Home | Imprint | This part of the site doesn't use cookies.