• Модуль: sale
  • Путь к файлу: ~/bitrix/modules/sale/lib/location/search/chain.php
  • Класс: BitrixSaleLocationSearchChainTable
  • Вызов: ChainTable::cleanUpData
static function cleanUpData()
{
	Helper::dropTable(static::getTableName());

	MainHttpApplication::getConnection()->query("create table ".static::getTableName()." (

		LOCATION_ID ".Helper::getSqlForDataType('int').",
		RELEVANCY ".Helper::getSqlForDataType('int')." default '0',
		POSITION ".Helper::getSqlForDataType('int')." default '0',

		primary key (POSITION, LOCATION_ID)

	)");
}