@@ -58,7 +58,6 @@ public InputStream[] getPrepareScripts() {
5858 @ Override
5959 public void performDataMigration (Connection conn ) {
6060 checkAndUpdateAffinityGroupNameCharSetToUtf8mb4 (conn );
61- addIndexes (conn );
6261 }
6362
6463 @ Override
@@ -114,42 +113,4 @@ private void checkAndUpdateAffinityGroupNameCharSetToUtf8mb4(Connection conn) {
114113 logger .warn ("Exception while updating char set for affinity group name to utf8mb4: " + e .getMessage ());
115114 }
116115 }
117-
118- private void addIndexes (Connection conn ) {
119- DbUpgradeUtils .addIndexIfNeeded (conn , "host" , "mgmt_server_id" );
120- DbUpgradeUtils .addIndexIfNeeded (conn , "host" , "resource" );
121- DbUpgradeUtils .addIndexIfNeeded (conn , "host" , "resource_state" );
122- DbUpgradeUtils .addIndexIfNeeded (conn , "host" , "type" );
123-
124- DbUpgradeUtils .renameIndexIfNeeded (conn , "user_ip_address" , "public_ip_address" , "uk_public_ip_address" );
125- DbUpgradeUtils .addIndexIfNeeded (conn , "user_ip_address" , "public_ip_address" );
126- DbUpgradeUtils .addIndexIfNeeded (conn , "user_ip_address" , "data_center_id" );
127- DbUpgradeUtils .addIndexIfNeeded (conn , "user_ip_address" , "vlan_db_id" );
128- DbUpgradeUtils .addIndexIfNeeded (conn , "user_ip_address" , "removed" );
129-
130- DbUpgradeUtils .addIndexIfNeeded (conn , "vlan" , "vlan_type" );
131- DbUpgradeUtils .addIndexIfNeeded (conn , "vlan" , "data_center_id" );
132- DbUpgradeUtils .addIndexIfNeeded (conn , "vlan" , "removed" );
133-
134- DbUpgradeUtils .addIndexIfNeeded (conn , "network_offering_details" , "name" );
135-
136- DbUpgradeUtils .addIndexIfNeeded (conn , "network_offering_details" , "resource_id" , "resource_type" );
137-
138- DbUpgradeUtils .addIndexIfNeeded (conn , "service_offering" , "cpu" );
139- DbUpgradeUtils .addIndexIfNeeded (conn , "service_offering" , "speed" );
140- DbUpgradeUtils .addIndexIfNeeded (conn , "service_offering" , "ram_size" );
141-
142- DbUpgradeUtils .addIndexIfNeeded (conn , "op_host_planner_reservation" , "resource_usage" );
143-
144- DbUpgradeUtils .addIndexIfNeeded (conn , "storage_pool" , "pool_type" );
145- DbUpgradeUtils .addIndexIfNeeded (conn , "storage_pool" , "data_center_id" , "status" , "scope" , "hypervisor" );
146-
147- DbUpgradeUtils .addIndexIfNeeded (conn , "router_network_ref" , "guest_type" );
148-
149- DbUpgradeUtils .addIndexIfNeeded (conn , "domain_router" , "role" );
150-
151- DbUpgradeUtils .addIndexIfNeeded (conn , "async_job" , "instance_type" , "job_status" );
152-
153- DbUpgradeUtils .addIndexIfNeeded (conn , "cluster" , "managed_state" );
154- }
155116}
0 commit comments