getModuleSql()) { foreach ($sql as $query) { if ($query) { if (!Db::getInstance()->execute(trim($query))) { return false; } } } } return true; } public function dropTables() { return Db::getInstance()->execute( 'DROP TABLE IF EXISTS `'._DB_PREFIX_.'htl_room_type`, `'._DB_PREFIX_.'htl_room_information`, `'._DB_PREFIX_.'htl_branch_info`, `'._DB_PREFIX_.'htl_branch_info_lang`, `'._DB_PREFIX_.'htl_image`, `'._DB_PREFIX_.'htl_image_category`, `'._DB_PREFIX_.'htl_image_category_lang`, `'._DB_PREFIX_.'htl_branch_amenity`, `'._DB_PREFIX_.'htl_room_type_amenity`, `'._DB_PREFIX_.'htl_amenity`, `'._DB_PREFIX_.'htl_amenity_lang`, `'._DB_PREFIX_.'htl_cart_booking_data`, `'._DB_PREFIX_.'htl_booking_detail`, `'._DB_PREFIX_.'htl_booking_status`, `'._DB_PREFIX_.'htl_booking_status_lang`, `'._DB_PREFIX_.'htl_booking_status_history`, `'._DB_PREFIX_.'htl_booking_document`, `'._DB_PREFIX_.'htl_room_status`, `'._DB_PREFIX_.'htl_advance_payment`, `'._DB_PREFIX_.'htl_order_refund_rules`, `'._DB_PREFIX_.'htl_order_refund_rules_lang`, `'._DB_PREFIX_.'htl_branch_refund_rules`, `'._DB_PREFIX_.'htl_order_restrict_date`, `'._DB_PREFIX_.'htl_room_type_feature_pricing`, `'._DB_PREFIX_.'htl_room_type_feature_pricing_lang`, `'._DB_PREFIX_.'htl_room_type_feature_pricing_group`, `'._DB_PREFIX_.'htl_room_type_feature_pricing_restriction`, `'._DB_PREFIX_.'htl_room_type_service_product`, `'._DB_PREFIX_.'htl_room_type_service_product_price`, `'._DB_PREFIX_.'product_option`, `'._DB_PREFIX_.'product_option_lang`, `'._DB_PREFIX_.'service_product_cart_detail`, `'._DB_PREFIX_.'service_product_order_detail`, `'._DB_PREFIX_.'htl_room_disable_dates`, `'._DB_PREFIX_.'htl_room_type_restriction_date_range`, `'._DB_PREFIX_.'htl_bed_type`, `'._DB_PREFIX_.'htl_bed_type_lang`, `'._DB_PREFIX_.'htl_room_type_bed_type`, `'._DB_PREFIX_.'htl_property_type`, `'._DB_PREFIX_.'htl_property_type_lang`, `'._DB_PREFIX_.'htl_access`, `'._DB_PREFIX_.'htl_settings_link`, `'._DB_PREFIX_.'htl_settings_link_lang`, `'._DB_PREFIX_.'htl_header_image`, `'._DB_PREFIX_.'htl_header_image_lang`, `'._DB_PREFIX_.'htl_connected_room`' ); } }