SQL Rename Index
The following command will renametenant_primary_idx
to tenant_id_idx
PostgreSQL, Oracle
MySQL
SQL Server
ALTER INDEX tenant_primary_idx RENAME TO tenant_id_idx;