getTable('visits'); $this->skipIf($visits->hasIndex(self::INDEX_NAME)); $visits->dropIndex('IDX_visits_potential_bot'); // Old index $visits->addIndex(['potential_bot'], self::INDEX_NAME); } public function isTransactional(): bool { return ! ($this->connection->getDatabasePlatform() instanceof MySQLPlatform); } }