public static function rollBack() { if (Helper::checkTableExists(self::TABLE_LEGACY_RELATIONS)) { Helper::mergeTables('b_sale_location', self::TABLE_LEGACY_RELATIONS, array('COUNTRY_ID' => 'COUNTRY_ID', 'REGION_ID' => 'REGION_ID', 'CITY_ID' => 'CITY_ID'), array('ID' => 'ID')); } Helper::truncateTable(self::TABLE_LOCATION_NAME); Helper::truncateTable(self::TABLE_LOCATION_EXTERNAL); \CSaleLocation::locationProSetRolledBack(); }