Your IP : 216.73.216.84


Current Path : /home/helpink/www/administrator/components/com_jbusinessdirectory/sql/updates/mysql/
Upload File :
Current File : /home/helpink/www/administrator/components/com_jbusinessdirectory/sql/updates/mysql/5.8.2.sql

--
-- Table structure for table `#__jbusinessdirectory_mobile_app_config`
--

CREATE TABLE IF NOT EXISTS `#__jbusinessdirectory_mobile_app_config` (
  `id` int(11) NOT NULL AUTO_INCREMENT,
  `name` varchar(255) DEFAULT NULL,
  `value` text DEFAULT NULL,
  PRIMARY KEY (`id`),
  UNIQUE KEY `idx_name` (`name`)
) ENGINE=MyISAM AUTO_INCREMENT=309 DEFAULT CHARSET=utf8;


--
-- Dumping data for table `#__jbusinessdirectory_mobile_app_config`
--

INSERT INTO `#__jbusinessdirectory_mobile_app_config` (`name`, `value`) VALUES
('app_id', '1'),
('last_updated', CURRENT_TIMESTAMP),
('primaryColor', 'ff7142'),
('backgroundColor', 'fffffff'),
('textPrimary', '212E3E'),
('genericText', '212E3E'),
('iconColor', '212E3E'),
('isLocationMandatory', '0'),
('showLatestListings', '1'),
('showFeaturedListings', '1'),
('showFeaturedOffers', '1'),
('showFeaturedEvents', '1'),
('showOffers', '1'),
('enableReviews', '1'),
('isJoomla', '1'),
('baseUrl', ''),
('mapsApiKey', ''),
('limit', ''),
('mapType', 'google'),
('language_keys', ''),
('language_values', ''),
('androidOrderId', ''),
('iosOrderId', ''),
('androidOrderEmail', ''),
('mobile_business_img', ''),
('mobile_offer_img', ''),
('mobile_event_img', ''),
('mobile_only_featured_listings', '0'),
('mobile_only_featured_offers', '0'),
('mobile_only_featured_events', '0'),
('mobile_company_categories_filter', ''),
('mobile_offer_categories_filter', ''),
('mobile_event_categories_filter', ''),
('mobile_list_limit', '5'),
('firebase_server_key', ''),
('user_email', ''),
('slide1', ''),
('slide2', ''),
('slide3', ''),
('home_header', ''),
('featured_placeholder', ''),
('logo_ios', ''),
('logo_ios_nb', ''),
('google-plist', ''),
('mobileprovisioning', ''),
('certificate', ''),
('client_configs', ''),
('google-services', ''),
('logo_android', ''),
('logo_android_nb', ''),
('iosOrderEmail', '');

DELETE FROM `#__jbusinessdirectory_application_settings` WHERE name='mobile_business_img';
DELETE FROM `#__jbusinessdirectory_application_settings` WHERE name='mobile_offer_img';
DELETE FROM `#__jbusinessdirectory_application_settings` WHERE name='mobile_event_img';
DELETE FROM `#__jbusinessdirectory_application_settings` WHERE name='mobile_only_featured_listings';
DELETE FROM `#__jbusinessdirectory_application_settings` WHERE name='mobile_only_featured_offers';
DELETE FROM `#__jbusinessdirectory_application_settings` WHERE name='mobile_only_featured_events';
DELETE FROM `#__jbusinessdirectory_application_settings` WHERE name='mobile_company_categories_filter';
DELETE FROM `#__jbusinessdirectory_application_settings` WHERE name='mobile_offer_categories_filter';
DELETE FROM `#__jbusinessdirectory_application_settings` WHERE name='mobile_event_categories_filter';
DELETE FROM `#__jbusinessdirectory_application_settings` WHERE name='mobile_list_limit';

INSERT INTO `#__jbusinessdirectory_application_settings` (`name`, `value`, `text`, `description`) VALUES
('show_custom_attributes', '1', 'LNG_SHOW_CUSTOM_ATTRIBUTES', 'LNG_SHOW_CUSTOM_ATTRIBUTES_DESCRIPTION');

ALTER TABLE `#__jbusinessdirectory_company_offers` 
ADD COLUMN `review_score` decimal(2,1) DEFAULT '0.0';

ALTER TABLE `#__jbusinessdirectory_categories` 
ADD COLUMN `user_as_container` TINYINT(1) DEFAULT NULL;