schemaSetup = $schemaSetup; } public static function getDependencies(): array { return []; } public function getAliases(): array { return []; } public function apply(): DropOldIndexTable { $connection = $this->schemaSetup->getConnection(); $oldTableName = $this->schemaSetup->getTable(self::OLD_INDEX_TABLE); if ($connection->isTableExists($oldTableName)) { $connection->dropTable($oldTableName); } return $this; } }