Skip to content

Add index in existing index in magento2

i want to add index in already existing index using Setup/UpgradeSchema

 $connection = $setup->getConnection();
        $tableName = $setup->getTable('sales_order_grid');
        $indexName = 'sales_ordergrid_netsuite_id';
        $columnName = 'netsuite_id';

        $connection->addIndex(
            $tableName,
            $indexName,
            $columnName,
            MagentoFrameworkDBAdapterAdapterInterface::INDEX_TYPE_FULLTEXT
        );

It’s creating new insted of adding to existing index.
How can i add index in existing(“FTI_65B9E9925EC58F0C7C2E2F6379C233E7”) index?

enter image description here

Thank.