getTable('oauth2_clients')->hasColumn('client_identifier')) { $table = $schema->getTable('oauth2_clients'); $table->dropIndex('oauth2_client_id_idx'); $table->addUniqueIndex(['client_identifier'], 'oauth2_client_id_idx'); return $schema; } } }