setExecutedDestructive example

/** @var MigrationStep $migration */
            $migration = new $migration();

            try {
                $migration->updateDestructive($this->connection);
            } catch (\Exception $e) {
                $this->logError($migration$e->getMessage());

                throw $e;
            }

            $this->setExecutedDestructive($migration);
            yield $migration::class;
        }
    }

    /** * @return list<class-string<MigrationStep>> */
    public function getExecutableMigrations(MigrationSource $source, ?int $until = null, ?int $limit = null): array
    {
        return $this->getExecutableMigrationsBaseQuery($source$until$limit)
            ->andWhere('`update` IS NULL')
            
Home | Imprint | This part of the site doesn't use cookies.