• Модуль: sale
  • Путь к файлу: ~/bitrix/modules/sale/lib/location/import/compiler/db/exporttree.php
  • Класс: BitrixSaleLocationImportCompilerDbExportTreeTable
  • Вызов: ExportTreeTable::restoreIndexes
public function restoreIndexes()
{
	$dbConnection = MainHttpApplication::getConnection();
	$table = static::getTableName();

	try
	{
		$dbConnection->query('CREATE INDEX IX_SALE_LOCATION_EXPORT_TREE_CODE ON '.$table.' (CODE)');
	}
	catch(Exception $e)
	{
	}
	
	try
	{
		$dbConnection->query('CREATE INDEX IX_SALE_LOCATION_EXPORT_TREE_PARENT_CODE ON '.$table.' (PARENT_CODE)');
	}
	catch(Exception $e)
	{
	}

	try
	{
		$dbConnection->query('CREATE INDEX IX_SALE_LOCATION_EXPORT_TREE_TYPE_CODE ON '.$table.' (TYPE_CODE)');
	}
	catch(Exception $e)
	{
	}
}