|
-- MariaDB dump 10.19 Distrib 10.5.21-MariaDB, for debian-linux-gnu (aarch64) |
|
-- |
|
-- Host: db Database: magento |
|
-- ------------------------------------------------------ |
|
-- Server version 10.6.16-MariaDB-1:10.6.16+maria~ubu2004 |
|
|
|
/*!40101 SET @OLD_CHARACTER_SET_CLIENT=@@CHARACTER_SET_CLIENT */; |
|
/*!40101 SET @OLD_CHARACTER_SET_RESULTS=@@CHARACTER_SET_RESULTS */; |
|
/*!40101 SET @OLD_COLLATION_CONNECTION=@@COLLATION_CONNECTION */; |
|
/*!40101 SET NAMES utf8mb4 */; |
|
/*!40103 SET @OLD_TIME_ZONE=@@TIME_ZONE */; |
|
/*!40103 SET TIME_ZONE='+00:00' */; |
|
/*!40014 SET @OLD_UNIQUE_CHECKS=@@UNIQUE_CHECKS, UNIQUE_CHECKS=0 */; |
|
/*!40014 SET @OLD_FOREIGN_KEY_CHECKS=@@FOREIGN_KEY_CHECKS, FOREIGN_KEY_CHECKS=0 */; |
|
/*!40101 SET @OLD_SQL_MODE=@@SQL_MODE, SQL_MODE='NO_AUTO_VALUE_ON_ZERO' */; |
|
/*!40111 SET @OLD_SQL_NOTES=@@SQL_NOTES, SQL_NOTES=0 */; |
|
|
|
-- |
|
-- Table structure for table `cataloginventory_stock_item` |
|
-- |
|
|
|
DROP TABLE IF EXISTS `cataloginventory_stock_item`; |
|
/*!40101 SET @saved_cs_client = @@character_set_client */; |
|
/*!40101 SET character_set_client = utf8 */; |
|
CREATE TABLE `cataloginventory_stock_item` ( |
|
`item_id` int(10) unsigned NOT NULL AUTO_INCREMENT COMMENT 'Item ID', |
|
`product_id` int(10) unsigned NOT NULL DEFAULT 0 COMMENT 'Product ID', |
|
`stock_id` smallint(5) unsigned NOT NULL DEFAULT 0 COMMENT 'Stock ID', |
|
`qty` decimal(12,4) DEFAULT NULL COMMENT 'Qty', |
|
`min_qty` decimal(12,4) NOT NULL DEFAULT 0.0000 COMMENT 'Min Qty', |
|
`use_config_min_qty` smallint(5) unsigned NOT NULL DEFAULT 1 COMMENT 'Use Config Min Qty', |
|
`is_qty_decimal` smallint(5) unsigned NOT NULL DEFAULT 0 COMMENT 'Is Qty Decimal', |
|
`backorders` smallint(5) unsigned NOT NULL DEFAULT 0 COMMENT 'Backorders', |
|
`use_config_backorders` smallint(5) unsigned NOT NULL DEFAULT 1 COMMENT 'Use Config Backorders', |
|
`min_sale_qty` decimal(12,4) NOT NULL DEFAULT 1.0000 COMMENT 'Min Sale Qty', |
|
`use_config_min_sale_qty` smallint(5) unsigned NOT NULL DEFAULT 1 COMMENT 'Use Config Min Sale Qty', |
|
`max_sale_qty` decimal(12,4) NOT NULL DEFAULT 0.0000 COMMENT 'Max Sale Qty', |
|
`use_config_max_sale_qty` smallint(5) unsigned NOT NULL DEFAULT 1 COMMENT 'Use Config Max Sale Qty', |
|
`is_in_stock` smallint(5) unsigned NOT NULL DEFAULT 0 COMMENT 'Is In Stock', |
|
`low_stock_date` timestamp NULL DEFAULT NULL COMMENT 'Low Stock Date', |
|
`notify_stock_qty` decimal(12,4) DEFAULT NULL COMMENT 'Notify Stock Qty', |
|
`use_config_notify_stock_qty` smallint(5) unsigned NOT NULL DEFAULT 1 COMMENT 'Use Config Notify Stock Qty', |
|
`manage_stock` smallint(5) unsigned NOT NULL DEFAULT 0 COMMENT 'Manage Stock', |
|
`use_config_manage_stock` smallint(5) unsigned NOT NULL DEFAULT 1 COMMENT 'Use Config Manage Stock', |
|
`stock_status_changed_auto` smallint(5) unsigned NOT NULL DEFAULT 0 COMMENT 'Stock Status Changed Automatically', |
|
`use_config_qty_increments` smallint(5) unsigned NOT NULL DEFAULT 1 COMMENT 'Use Config Qty Increments', |
|
`qty_increments` decimal(12,4) NOT NULL DEFAULT 0.0000 COMMENT 'Qty Increments', |
|
`use_config_enable_qty_inc` smallint(5) unsigned NOT NULL DEFAULT 1 COMMENT 'Use Config Enable Qty Increments', |
|
`enable_qty_increments` smallint(5) unsigned NOT NULL DEFAULT 0 COMMENT 'Enable Qty Increments', |
|
`is_decimal_divided` smallint(5) unsigned NOT NULL DEFAULT 0 COMMENT 'Is Divided into Multiple Boxes for Shipping', |
|
`website_id` smallint(5) unsigned NOT NULL DEFAULT 0 COMMENT 'Website ID', |
|
`deferred_stock_update` smallint(5) unsigned NOT NULL DEFAULT 0 COMMENT 'Use deferred Stock update', |
|
`use_config_deferred_stock_update` smallint(5) unsigned NOT NULL DEFAULT 1 COMMENT 'Use configuration settings for deferred Stock update', |
|
`ukey` text DEFAULT NULL COMMENT 'ukey', |
|
PRIMARY KEY (`item_id`), |
|
UNIQUE KEY `CATALOGINVENTORY_STOCK_ITEM_PRODUCT_ID_STOCK_ID` (`product_id`,`stock_id`), |
|
KEY `CATALOGINVENTORY_STOCK_ITEM_WEBSITE_ID` (`website_id`), |
|
KEY `CATALOGINVENTORY_STOCK_ITEM_WEBSITE_ID_PRODUCT_ID` (`website_id`,`product_id`), |
|
KEY `CATALOGINVENTORY_STOCK_ITEM_STOCK_ID` (`stock_id`), |
|
CONSTRAINT `CATINV_STOCK_ITEM_PRD_ID_SEQUENCE_PRD_SEQUENCE_VAL` FOREIGN KEY (`product_id`) REFERENCES `sequence_product` (`sequence_value`) ON DELETE CASCADE, |
|
CONSTRAINT `CATINV_STOCK_ITEM_STOCK_ID_CATINV_STOCK_STOCK_ID` FOREIGN KEY (`stock_id`) REFERENCES `cataloginventory_stock` (`stock_id`) ON DELETE CASCADE |
|
) ENGINE=InnoDB DEFAULT CHARSET=utf8mb3 COLLATE=utf8mb3_general_ci COMMENT='Cataloginventory Stock Item'; |
|
/*!40101 SET character_set_client = @saved_cs_client */; |
|
/*!50003 SET @saved_cs_client = @@character_set_client */ ; |
|
/*!50003 SET @saved_cs_results = @@character_set_results */ ; |
|
/*!50003 SET @saved_col_connection = @@collation_connection */ ; |
|
/*!50003 SET character_set_client = utf8mb3 */ ; |
|
/*!50003 SET character_set_results = utf8mb3 */ ; |
|
/*!50003 SET collation_connection = utf8mb3_general_ci */ ; |
|
/*!50003 SET @saved_sql_mode = @@sql_mode */ ; |
|
/*!50003 SET sql_mode = '' */ ; |
|
DELIMITER ;; |
|
/*!50003 CREATE*/ /*!50017 DEFINER=CURRENT_USER*/ /*!50003 TRIGGER trg_cataloginventory_stock_item_after_insert AFTER INSERT ON cataloginventory_stock_item FOR EACH ROW |
|
BEGIN |
|
INSERT IGNORE INTO `algolia_products_cl` (`entity_id`) VALUES (NEW.`product_id`); |
|
INSERT IGNORE INTO `cataloginventory_stock_cl` (`entity_id`) VALUES (NEW.`product_id`); |
|
END */;; |
|
DELIMITER ; |
|
/*!50003 SET sql_mode = @saved_sql_mode */ ; |
|
/*!50003 SET character_set_client = @saved_cs_client */ ; |
|
/*!50003 SET character_set_results = @saved_cs_results */ ; |
|
/*!50003 SET collation_connection = @saved_col_connection */ ; |
|
/*!50003 SET @saved_cs_client = @@character_set_client */ ; |
|
/*!50003 SET @saved_cs_results = @@character_set_results */ ; |
|
/*!50003 SET @saved_col_connection = @@collation_connection */ ; |
|
/*!50003 SET character_set_client = utf8mb3 */ ; |
|
/*!50003 SET character_set_results = utf8mb3 */ ; |
|
/*!50003 SET collation_connection = utf8mb3_general_ci */ ; |
|
/*!50003 SET @saved_sql_mode = @@sql_mode */ ; |
|
/*!50003 SET sql_mode = '' */ ; |
|
DELIMITER ;; |
|
/*!50003 CREATE*/ /*!50017 DEFINER=CURRENT_USER*/ /*!50003 TRIGGER trg_cataloginventory_stock_item_after_update AFTER UPDATE ON cataloginventory_stock_item FOR EACH ROW |
|
BEGIN |
|
IF (NOT(NEW.`item_id` <=> OLD.`item_id`) OR NOT(NEW.`product_id` <=> OLD.`product_id`) OR NOT(NEW.`stock_id` <=> OLD.`stock_id`) OR NOT(NEW.`qty` <=> OLD.`qty`) OR NOT(NEW.`min_qty` <=> OLD.`min_qty`) OR NOT(NEW.`use_config_min_qty` <=> OLD.`use_config_min_qty`) OR NOT(NEW.`is_qty_decimal` <=> OLD.`is_qty_decimal`) OR NOT(NEW.`backorders` <=> OLD.`backorders`) OR NOT(NEW.`use_config_backorders` <=> OLD.`use_config_backorders`) OR NOT(NEW.`min_sale_qty` <=> OLD.`min_sale_qty`) OR NOT(NEW.`use_config_min_sale_qty` <=> OLD.`use_config_min_sale_qty`) OR NOT(NEW.`max_sale_qty` <=> OLD.`max_sale_qty`) OR NOT(NEW.`use_config_max_sale_qty` <=> OLD.`use_config_max_sale_qty`) OR NOT(NEW.`is_in_stock` <=> OLD.`is_in_stock`) OR NOT(NEW.`low_stock_date` <=> OLD.`low_stock_date`) OR NOT(NEW.`notify_stock_qty` <=> OLD.`notify_stock_qty`) OR NOT(NEW.`use_config_notify_stock_qty` <=> OLD.`use_config_notify_stock_qty`) OR NOT(NEW.`manage_stock` <=> OLD.`manage_stock`) OR NOT(NEW.`use_config_manage_stock` <=> OLD.`use_config_manage_stock`) OR NOT(NEW.`stock_status_changed_auto` <=> OLD.`stock_status_changed_auto`) OR NOT(NEW.`use_config_qty_increments` <=> OLD.`use_config_qty_increments`) OR NOT(NEW.`qty_increments` <=> OLD.`qty_increments`) OR NOT(NEW.`use_config_enable_qty_inc` <=> OLD.`use_config_enable_qty_inc`) OR NOT(NEW.`enable_qty_increments` <=> OLD.`enable_qty_increments`) OR NOT(NEW.`is_decimal_divided` <=> OLD.`is_decimal_divided`) OR NOT(NEW.`website_id` <=> OLD.`website_id`) OR NOT(NEW.`deferred_stock_update` <=> OLD.`deferred_stock_update`) OR NOT(NEW.`use_config_deferred_stock_update` <=> OLD.`use_config_deferred_stock_update`) OR NOT(NEW.`ukey` <=> OLD.`ukey`)) THEN INSERT IGNORE INTO `algolia_products_cl` (`entity_id`) VALUES (NEW.`product_id`); END IF; |
|
IF (NOT(NEW.`item_id` <=> OLD.`item_id`) OR NOT(NEW.`product_id` <=> OLD.`product_id`) OR NOT(NEW.`stock_id` <=> OLD.`stock_id`) OR NOT(NEW.`qty` <=> OLD.`qty`) OR NOT(NEW.`min_qty` <=> OLD.`min_qty`) OR NOT(NEW.`use_config_min_qty` <=> OLD.`use_config_min_qty`) OR NOT(NEW.`is_qty_decimal` <=> OLD.`is_qty_decimal`) OR NOT(NEW.`backorders` <=> OLD.`backorders`) OR NOT(NEW.`use_config_backorders` <=> OLD.`use_config_backorders`) OR NOT(NEW.`min_sale_qty` <=> OLD.`min_sale_qty`) OR NOT(NEW.`use_config_min_sale_qty` <=> OLD.`use_config_min_sale_qty`) OR NOT(NEW.`max_sale_qty` <=> OLD.`max_sale_qty`) OR NOT(NEW.`use_config_max_sale_qty` <=> OLD.`use_config_max_sale_qty`) OR NOT(NEW.`is_in_stock` <=> OLD.`is_in_stock`) OR NOT(NEW.`low_stock_date` <=> OLD.`low_stock_date`) OR NOT(NEW.`notify_stock_qty` <=> OLD.`notify_stock_qty`) OR NOT(NEW.`use_config_notify_stock_qty` <=> OLD.`use_config_notify_stock_qty`) OR NOT(NEW.`manage_stock` <=> OLD.`manage_stock`) OR NOT(NEW.`use_config_manage_stock` <=> OLD.`use_config_manage_stock`) OR NOT(NEW.`stock_status_changed_auto` <=> OLD.`stock_status_changed_auto`) OR NOT(NEW.`use_config_qty_increments` <=> OLD.`use_config_qty_increments`) OR NOT(NEW.`qty_increments` <=> OLD.`qty_increments`) OR NOT(NEW.`use_config_enable_qty_inc` <=> OLD.`use_config_enable_qty_inc`) OR NOT(NEW.`enable_qty_increments` <=> OLD.`enable_qty_increments`) OR NOT(NEW.`is_decimal_divided` <=> OLD.`is_decimal_divided`) OR NOT(NEW.`website_id` <=> OLD.`website_id`) OR NOT(NEW.`deferred_stock_update` <=> OLD.`deferred_stock_update`) OR NOT(NEW.`use_config_deferred_stock_update` <=> OLD.`use_config_deferred_stock_update`) OR NOT(NEW.`ukey` <=> OLD.`ukey`)) THEN INSERT IGNORE INTO `cataloginventory_stock_cl` (`entity_id`) VALUES (NEW.`product_id`); END IF; |
|
END */;; |
|
DELIMITER ; |
|
/*!50003 SET sql_mode = @saved_sql_mode */ ; |
|
/*!50003 SET character_set_client = @saved_cs_client */ ; |
|
/*!50003 SET character_set_results = @saved_cs_results */ ; |
|
/*!50003 SET collation_connection = @saved_col_connection */ ; |
|
/*!50003 SET @saved_cs_client = @@character_set_client */ ; |
|
/*!50003 SET @saved_cs_results = @@character_set_results */ ; |
|
/*!50003 SET @saved_col_connection = @@collation_connection */ ; |
|
/*!50003 SET character_set_client = utf8mb3 */ ; |
|
/*!50003 SET character_set_results = utf8mb3 */ ; |
|
/*!50003 SET collation_connection = utf8mb3_general_ci */ ; |
|
/*!50003 SET @saved_sql_mode = @@sql_mode */ ; |
|
/*!50003 SET sql_mode = '' */ ; |
|
DELIMITER ;; |
|
/*!50003 CREATE*/ /*!50017 DEFINER=CURRENT_USER*/ /*!50003 TRIGGER trg_cataloginventory_stock_item_after_delete AFTER DELETE ON cataloginventory_stock_item FOR EACH ROW |
|
BEGIN |
|
INSERT IGNORE INTO `algolia_products_cl` (`entity_id`) VALUES (OLD.`product_id`); |
|
INSERT IGNORE INTO `cataloginventory_stock_cl` (`entity_id`) VALUES (OLD.`product_id`); |
|
END */;; |
|
DELIMITER ; |
|
/*!50003 SET sql_mode = @saved_sql_mode */ ; |
|
/*!50003 SET character_set_client = @saved_cs_client */ ; |
|
/*!50003 SET character_set_results = @saved_cs_results */ ; |
|
/*!50003 SET collation_connection = @saved_col_connection */ ; |
|
|
|
-- |
|
-- Table structure for table `cataloginventory_stock_status` |
|
-- |
|
|
|
DROP TABLE IF EXISTS `cataloginventory_stock_status`; |
|
/*!40101 SET @saved_cs_client = @@character_set_client */; |
|
/*!40101 SET character_set_client = utf8 */; |
|
CREATE TABLE `cataloginventory_stock_status` ( |
|
`product_id` int(10) unsigned NOT NULL COMMENT 'Product ID', |
|
`website_id` smallint(5) unsigned NOT NULL COMMENT 'Website ID', |
|
`stock_id` smallint(5) unsigned NOT NULL COMMENT 'Stock ID', |
|
`qty` decimal(12,4) NOT NULL DEFAULT 0.0000 COMMENT 'Qty', |
|
`stock_status` smallint(5) unsigned NOT NULL COMMENT 'Stock Status', |
|
PRIMARY KEY (`product_id`,`website_id`,`stock_id`), |
|
KEY `CATALOGINVENTORY_STOCK_STATUS_STOCK_ID` (`stock_id`), |
|
KEY `CATALOGINVENTORY_STOCK_STATUS_WEBSITE_ID` (`website_id`), |
|
KEY `CATALOGINVENTORY_STOCK_STATUS_STOCK_STATUS` (`stock_status`) |
|
) ENGINE=InnoDB DEFAULT CHARSET=utf8mb3 COLLATE=utf8mb3_general_ci COMMENT='Cataloginventory Stock Status'; |
|
/*!40101 SET character_set_client = @saved_cs_client */; |
|
|
|
-- |
|
-- Table structure for table `cataloginventory_stock_status_idx` |
|
-- |
|
|
|
DROP TABLE IF EXISTS `cataloginventory_stock_status_idx`; |
|
/*!40101 SET @saved_cs_client = @@character_set_client */; |
|
/*!40101 SET character_set_client = utf8 */; |
|
CREATE TABLE `cataloginventory_stock_status_idx` ( |
|
`product_id` int(10) unsigned NOT NULL COMMENT 'Product ID', |
|
`website_id` smallint(5) unsigned NOT NULL COMMENT 'Website ID', |
|
`stock_id` smallint(5) unsigned NOT NULL COMMENT 'Stock ID', |
|
`qty` decimal(12,4) NOT NULL DEFAULT 0.0000 COMMENT 'Qty', |
|
`stock_status` smallint(5) unsigned NOT NULL COMMENT 'Stock Status', |
|
PRIMARY KEY (`product_id`,`website_id`,`stock_id`), |
|
KEY `CATALOGINVENTORY_STOCK_STATUS_IDX_STOCK_ID` (`stock_id`), |
|
KEY `CATALOGINVENTORY_STOCK_STATUS_IDX_WEBSITE_ID` (`website_id`) |
|
) ENGINE=InnoDB DEFAULT CHARSET=utf8mb3 COLLATE=utf8mb3_general_ci COMMENT='Cataloginventory Stock Status Indexer Idx'; |
|
/*!40101 SET character_set_client = @saved_cs_client */; |
|
|
|
-- |
|
-- Table structure for table `cataloginventory_stock_status_replica` |
|
-- |
|
|
|
DROP TABLE IF EXISTS `cataloginventory_stock_status_replica`; |
|
/*!40101 SET @saved_cs_client = @@character_set_client */; |
|
/*!40101 SET character_set_client = utf8 */; |
|
CREATE TABLE `cataloginventory_stock_status_replica` ( |
|
`product_id` int(10) unsigned NOT NULL COMMENT 'Product ID', |
|
`website_id` smallint(5) unsigned NOT NULL COMMENT 'Website ID', |
|
`stock_id` smallint(5) unsigned NOT NULL COMMENT 'Stock ID', |
|
`qty` decimal(12,4) NOT NULL DEFAULT 0.0000 COMMENT 'Qty', |
|
`stock_status` smallint(5) unsigned NOT NULL COMMENT 'Stock Status', |
|
PRIMARY KEY (`product_id`,`website_id`,`stock_id`), |
|
KEY `CATALOGINVENTORY_STOCK_STATUS_STOCK_ID` (`stock_id`), |
|
KEY `CATALOGINVENTORY_STOCK_STATUS_WEBSITE_ID` (`website_id`), |
|
KEY `CATALOGINVENTORY_STOCK_STATUS_STOCK_STATUS` (`stock_status`) |
|
) ENGINE=InnoDB DEFAULT CHARSET=utf8mb3 COLLATE=utf8mb3_general_ci COMMENT='Cataloginventory Stock Status'; |
|
/*!40101 SET character_set_client = @saved_cs_client */; |
|
|
|
-- |
|
-- Table structure for table `cataloginventory_stock_status_tmp` |
|
-- |
|
|
|
DROP TABLE IF EXISTS `cataloginventory_stock_status_tmp`; |
|
/*!40101 SET @saved_cs_client = @@character_set_client */; |
|
/*!40101 SET character_set_client = utf8 */; |
|
CREATE TABLE `cataloginventory_stock_status_tmp` ( |
|
`product_id` int(10) unsigned NOT NULL COMMENT 'Product ID', |
|
`website_id` smallint(5) unsigned NOT NULL COMMENT 'Website ID', |
|
`stock_id` smallint(5) unsigned NOT NULL COMMENT 'Stock ID', |
|
`qty` decimal(12,4) NOT NULL DEFAULT 0.0000 COMMENT 'Qty', |
|
`stock_status` smallint(5) unsigned NOT NULL COMMENT 'Stock Status', |
|
PRIMARY KEY (`product_id`,`website_id`,`stock_id`), |
|
KEY `CATALOGINVENTORY_STOCK_STATUS_TMP_STOCK_ID` (`stock_id`), |
|
KEY `CATALOGINVENTORY_STOCK_STATUS_TMP_WEBSITE_ID` (`website_id`) |
|
) ENGINE=InnoDB DEFAULT CHARSET=utf8mb3 COLLATE=utf8mb3_general_ci COMMENT='Cataloginventory Stock Status Indexer Tmp'; |
|
/*!40101 SET character_set_client = @saved_cs_client */; |
|
|
|
-- |
|
-- Table structure for table `inventory_low_stock_notification_configuration` |
|
-- |
|
|
|
DROP TABLE IF EXISTS `inventory_low_stock_notification_configuration`; |
|
/*!40101 SET @saved_cs_client = @@character_set_client */; |
|
/*!40101 SET character_set_client = utf8 */; |
|
CREATE TABLE `inventory_low_stock_notification_configuration` ( |
|
`source_code` varchar(255) NOT NULL, |
|
`sku` varchar(64) NOT NULL, |
|
`notify_stock_qty` decimal(12,4) DEFAULT NULL, |
|
PRIMARY KEY (`source_code`,`sku`) |
|
) ENGINE=InnoDB DEFAULT CHARSET=utf8mb3 COLLATE=utf8mb3_general_ci; |
|
/*!40101 SET character_set_client = @saved_cs_client */; |
|
|
|
-- |
|
-- Table structure for table `inventory_source_item` |
|
-- |
|
|
|
DROP TABLE IF EXISTS `inventory_source_item`; |
|
/*!40101 SET @saved_cs_client = @@character_set_client */; |
|
/*!40101 SET character_set_client = utf8 */; |
|
CREATE TABLE `inventory_source_item` ( |
|
`source_item_id` int(10) unsigned NOT NULL AUTO_INCREMENT, |
|
`source_code` varchar(255) NOT NULL, |
|
`sku` varchar(64) NOT NULL, |
|
`quantity` decimal(12,4) NOT NULL DEFAULT 0.0000, |
|
`status` smallint(5) unsigned NOT NULL DEFAULT 0, |
|
`eta` datetime DEFAULT NULL COMMENT 'Estimated time of arrival', |
|
PRIMARY KEY (`source_item_id`), |
|
UNIQUE KEY `INVENTORY_SOURCE_ITEM_SOURCE_CODE_SKU` (`source_code`,`sku`), |
|
KEY `INVENTORY_SOURCE_ITEM_SKU_SOURCE_CODE_QUANTITY` (`sku`,`source_code`,`quantity`), |
|
CONSTRAINT `INVENTORY_SOURCE_ITEM_SOURCE_CODE_INVENTORY_SOURCE_SOURCE_CODE` FOREIGN KEY (`source_code`) REFERENCES `inventory_source` (`source_code`) ON DELETE CASCADE |
|
) ENGINE=InnoDB DEFAULT CHARSET=utf8mb3 COLLATE=utf8mb3_general_ci; |
|
/*!40101 SET character_set_client = @saved_cs_client */; |
|
/*!50003 SET @saved_cs_client = @@character_set_client */ ; |
|
/*!50003 SET @saved_cs_results = @@character_set_results */ ; |
|
/*!50003 SET @saved_col_connection = @@collation_connection */ ; |
|
/*!50003 SET character_set_client = utf8mb3 */ ; |
|
/*!50003 SET character_set_results = utf8mb3 */ ; |
|
/*!50003 SET collation_connection = utf8mb3_general_ci */ ; |
|
/*!50003 SET @saved_sql_mode = @@sql_mode */ ; |
|
/*!50003 SET sql_mode = '' */ ; |
|
DELIMITER ;; |
|
/*!50003 CREATE*/ /*!50017 DEFINER=CURRENT_USER*/ /*!50003 TRIGGER trg_inventory_source_item_after_insert AFTER INSERT ON inventory_source_item FOR EACH ROW |
|
BEGIN |
|
INSERT IGNORE INTO `inventory_cl` (`entity_id`) VALUES (NEW.`source_item_id`); |
|
END */;; |
|
DELIMITER ; |
|
/*!50003 SET sql_mode = @saved_sql_mode */ ; |
|
/*!50003 SET character_set_client = @saved_cs_client */ ; |
|
/*!50003 SET character_set_results = @saved_cs_results */ ; |
|
/*!50003 SET collation_connection = @saved_col_connection */ ; |
|
/*!50003 SET @saved_cs_client = @@character_set_client */ ; |
|
/*!50003 SET @saved_cs_results = @@character_set_results */ ; |
|
/*!50003 SET @saved_col_connection = @@collation_connection */ ; |
|
/*!50003 SET character_set_client = utf8mb3 */ ; |
|
/*!50003 SET character_set_results = utf8mb3 */ ; |
|
/*!50003 SET collation_connection = utf8mb3_general_ci */ ; |
|
/*!50003 SET @saved_sql_mode = @@sql_mode */ ; |
|
/*!50003 SET sql_mode = '' */ ; |
|
DELIMITER ;; |
|
/*!50003 CREATE*/ /*!50017 DEFINER=CURRENT_USER*/ /*!50003 TRIGGER trg_inventory_source_item_after_update AFTER UPDATE ON inventory_source_item FOR EACH ROW |
|
BEGIN |
|
IF (NOT(NEW.`source_item_id` <=> OLD.`source_item_id`) OR NOT(NEW.`source_code` <=> OLD.`source_code`) OR NOT(NEW.`sku` <=> OLD.`sku`) OR NOT(NEW.`quantity` <=> OLD.`quantity`) OR NOT(NEW.`status` <=> OLD.`status`) OR NOT(NEW.`eta` <=> OLD.`eta`)) THEN INSERT IGNORE INTO `inventory_cl` (`entity_id`) VALUES (NEW.`source_item_id`); END IF; |
|
END */;; |
|
DELIMITER ; |
|
/*!50003 SET sql_mode = @saved_sql_mode */ ; |
|
/*!50003 SET character_set_client = @saved_cs_client */ ; |
|
/*!50003 SET character_set_results = @saved_cs_results */ ; |
|
/*!50003 SET collation_connection = @saved_col_connection */ ; |
|
/*!50003 SET @saved_cs_client = @@character_set_client */ ; |
|
/*!50003 SET @saved_cs_results = @@character_set_results */ ; |
|
/*!50003 SET @saved_col_connection = @@collation_connection */ ; |
|
/*!50003 SET character_set_client = utf8mb3 */ ; |
|
/*!50003 SET character_set_results = utf8mb3 */ ; |
|
/*!50003 SET collation_connection = utf8mb3_general_ci */ ; |
|
/*!50003 SET @saved_sql_mode = @@sql_mode */ ; |
|
/*!50003 SET sql_mode = '' */ ; |
|
DELIMITER ;; |
|
/*!50003 CREATE*/ /*!50017 DEFINER=CURRENT_USER*/ /*!50003 TRIGGER trg_inventory_source_item_after_delete AFTER DELETE ON inventory_source_item FOR EACH ROW |
|
BEGIN |
|
INSERT IGNORE INTO `inventory_cl` (`entity_id`) VALUES (OLD.`source_item_id`); |
|
END */;; |
|
DELIMITER ; |
|
/*!50003 SET sql_mode = @saved_sql_mode */ ; |
|
/*!50003 SET character_set_client = @saved_cs_client */ ; |
|
/*!50003 SET character_set_results = @saved_cs_results */ ; |
|
/*!50003 SET collation_connection = @saved_col_connection */ ; |
|
|
|
-- |
|
-- Table structure for table `inventory_source_stock_link` |
|
-- |
|
|
|
DROP TABLE IF EXISTS `inventory_source_stock_link`; |
|
/*!40101 SET @saved_cs_client = @@character_set_client */; |
|
/*!40101 SET character_set_client = utf8 */; |
|
CREATE TABLE `inventory_source_stock_link` ( |
|
`link_id` int(10) unsigned NOT NULL AUTO_INCREMENT, |
|
`stock_id` int(10) unsigned NOT NULL, |
|
`source_code` varchar(255) NOT NULL, |
|
`priority` smallint(5) unsigned NOT NULL, |
|
PRIMARY KEY (`link_id`), |
|
UNIQUE KEY `INVENTORY_SOURCE_STOCK_LINK_STOCK_ID_SOURCE_CODE` (`stock_id`,`source_code`), |
|
KEY `INV_SOURCE_STOCK_LNK_SOURCE_CODE_INV_SOURCE_SOURCE_CODE` (`source_code`), |
|
KEY `INVENTORY_SOURCE_STOCK_LINK_STOCK_ID_PRIORITY` (`stock_id`,`priority`), |
|
CONSTRAINT `INVENTORY_SOURCE_STOCK_LINK_STOCK_ID_INVENTORY_STOCK_STOCK_ID` FOREIGN KEY (`stock_id`) REFERENCES `inventory_stock` (`stock_id`) ON DELETE CASCADE, |
|
CONSTRAINT `INV_SOURCE_STOCK_LNK_SOURCE_CODE_INV_SOURCE_SOURCE_CODE` FOREIGN KEY (`source_code`) REFERENCES `inventory_source` (`source_code`) ON DELETE CASCADE |
|
) ENGINE=InnoDB DEFAULT CHARSET=utf8mb3 COLLATE=utf8mb3_general_ci; |
|
/*!40101 SET character_set_client = @saved_cs_client */; |
|
/*!40103 SET TIME_ZONE=@OLD_TIME_ZONE */; |
|
|
|
/*!40101 SET SQL_MODE=@OLD_SQL_MODE */; |
|
/*!40014 SET FOREIGN_KEY_CHECKS=@OLD_FOREIGN_KEY_CHECKS */; |
|
/*!40014 SET UNIQUE_CHECKS=@OLD_UNIQUE_CHECKS */; |
|
/*!40101 SET CHARACTER_SET_CLIENT=@OLD_CHARACTER_SET_CLIENT */; |
|
/*!40101 SET CHARACTER_SET_RESULTS=@OLD_CHARACTER_SET_RESULTS */; |
|
/*!40101 SET COLLATION_CONNECTION=@OLD_COLLATION_CONNECTION */; |
|
/*!40111 SET SQL_NOTES=@OLD_SQL_NOTES */; |
|
|
|
-- Dump completed on 2024-10-09 10:54:19 |
|
-- MariaDB dump 10.19 Distrib 10.5.21-MariaDB, for debian-linux-gnu (aarch64) |
|
-- |
|
-- Host: db Database: magento |
|
-- ------------------------------------------------------ |
|
-- Server version 10.6.16-MariaDB-1:10.6.16+maria~ubu2004 |
|
|
|
/*!40101 SET @OLD_CHARACTER_SET_CLIENT=@@CHARACTER_SET_CLIENT */; |
|
/*!40101 SET @OLD_CHARACTER_SET_RESULTS=@@CHARACTER_SET_RESULTS */; |
|
/*!40101 SET @OLD_COLLATION_CONNECTION=@@COLLATION_CONNECTION */; |
|
/*!40101 SET NAMES utf8mb4 */; |
|
/*!40103 SET @OLD_TIME_ZONE=@@TIME_ZONE */; |
|
/*!40103 SET TIME_ZONE='+00:00' */; |
|
/*!40014 SET @OLD_UNIQUE_CHECKS=@@UNIQUE_CHECKS, UNIQUE_CHECKS=0 */; |
|
/*!40014 SET @OLD_FOREIGN_KEY_CHECKS=@@FOREIGN_KEY_CHECKS, FOREIGN_KEY_CHECKS=0 */; |
|
/*!40101 SET @OLD_SQL_MODE=@@SQL_MODE, SQL_MODE='NO_AUTO_VALUE_ON_ZERO' */; |
|
/*!40111 SET @OLD_SQL_NOTES=@@SQL_NOTES, SQL_NOTES=0 */; |
|
/*!40103 SET TIME_ZONE=@OLD_TIME_ZONE */; |
|
|
|
/*!40101 SET SQL_MODE=@OLD_SQL_MODE */; |
|
/*!40014 SET FOREIGN_KEY_CHECKS=@OLD_FOREIGN_KEY_CHECKS */; |
|
/*!40014 SET UNIQUE_CHECKS=@OLD_UNIQUE_CHECKS */; |
|
/*!40101 SET CHARACTER_SET_CLIENT=@OLD_CHARACTER_SET_CLIENT */; |
|
/*!40101 SET CHARACTER_SET_RESULTS=@OLD_CHARACTER_SET_RESULTS */; |
|
/*!40101 SET COLLATION_CONNECTION=@OLD_COLLATION_CONNECTION */; |
|
/*!40111 SET SQL_NOTES=@OLD_SQL_NOTES */; |
|
|
|
-- Dump completed on 2024-10-09 10:54:19 |
|
-- MariaDB dump 10.19 Distrib 10.5.21-MariaDB, for debian-linux-gnu (aarch64) |
|
-- |
|
-- Host: db Database: magento |
|
-- ------------------------------------------------------ |
|
-- Server version 10.6.16-MariaDB-1:10.6.16+maria~ubu2004 |
|
|
|
/*!40101 SET @OLD_CHARACTER_SET_CLIENT=@@CHARACTER_SET_CLIENT */; |
|
/*!40101 SET @OLD_CHARACTER_SET_RESULTS=@@CHARACTER_SET_RESULTS */; |
|
/*!40101 SET @OLD_COLLATION_CONNECTION=@@COLLATION_CONNECTION */; |
|
/*!40101 SET NAMES utf8mb4 */; |
|
/*!40103 SET @OLD_TIME_ZONE=@@TIME_ZONE */; |
|
/*!40103 SET TIME_ZONE='+00:00' */; |
|
/*!40014 SET @OLD_UNIQUE_CHECKS=@@UNIQUE_CHECKS, UNIQUE_CHECKS=0 */; |
|
/*!40014 SET @OLD_FOREIGN_KEY_CHECKS=@@FOREIGN_KEY_CHECKS, FOREIGN_KEY_CHECKS=0 */; |
|
/*!40101 SET @OLD_SQL_MODE=@@SQL_MODE, SQL_MODE='NO_AUTO_VALUE_ON_ZERO' */; |
|
/*!40111 SET @OLD_SQL_NOTES=@@SQL_NOTES, SQL_NOTES=0 */; |
|
|
|
-- |
|
-- Table structure for table `catalog_category_product` |
|
-- |
|
|
|
DROP TABLE IF EXISTS `catalog_category_product`; |
|
/*!40101 SET @saved_cs_client = @@character_set_client */; |
|
/*!40101 SET character_set_client = utf8 */; |
|
CREATE TABLE `catalog_category_product` ( |
|
`entity_id` int(11) NOT NULL AUTO_INCREMENT COMMENT 'Entity ID', |
|
`category_id` int(10) unsigned NOT NULL DEFAULT 0 COMMENT 'Category ID', |
|
`product_id` int(10) unsigned NOT NULL DEFAULT 0 COMMENT 'Product ID', |
|
`position` int(11) NOT NULL DEFAULT 0 COMMENT 'Position', |
|
PRIMARY KEY (`entity_id`,`category_id`,`product_id`), |
|
UNIQUE KEY `CATALOG_CATEGORY_PRODUCT_CATEGORY_ID_PRODUCT_ID` (`category_id`,`product_id`), |
|
KEY `CATALOG_CATEGORY_PRODUCT_PRODUCT_ID` (`product_id`), |
|
CONSTRAINT `CAT_CTGR_PRD_CTGR_ID_SEQUENCE_CAT_CTGR_SEQUENCE_VAL` FOREIGN KEY (`category_id`) REFERENCES `sequence_catalog_category` (`sequence_value`) ON DELETE CASCADE, |
|
CONSTRAINT `CAT_CTGR_PRD_PRD_ID_SEQUENCE_PRD_SEQUENCE_VAL` FOREIGN KEY (`product_id`) REFERENCES `sequence_product` (`sequence_value`) ON DELETE CASCADE |
|
) ENGINE=InnoDB DEFAULT CHARSET=utf8mb3 COLLATE=utf8mb3_general_ci COMMENT='Catalog Product To Category Linkage Table'; |
|
/*!40101 SET character_set_client = @saved_cs_client */; |
|
/*!50003 SET @saved_cs_client = @@character_set_client */ ; |
|
/*!50003 SET @saved_cs_results = @@character_set_results */ ; |
|
/*!50003 SET @saved_col_connection = @@collation_connection */ ; |
|
/*!50003 SET character_set_client = utf8mb3 */ ; |
|
/*!50003 SET character_set_results = utf8mb3 */ ; |
|
/*!50003 SET collation_connection = utf8mb3_general_ci */ ; |
|
/*!50003 SET @saved_sql_mode = @@sql_mode */ ; |
|
/*!50003 SET sql_mode = '' */ ; |
|
DELIMITER ;; |
|
/*!50003 CREATE*/ /*!50017 DEFINER=CURRENT_USER*/ /*!50003 TRIGGER trg_catalog_category_product_after_insert AFTER INSERT ON catalog_category_product FOR EACH ROW |
|
BEGIN |
|
INSERT IGNORE INTO `algolia_products_cl` (`entity_id`) VALUES (NEW.`product_id`); |
|
INSERT IGNORE INTO `catalog_product_category_cl` (`entity_id`) VALUES (NEW.`product_id`); |
|
INSERT IGNORE INTO `catalogrule_product_cl` (`entity_id`) VALUES (NEW.`product_id`); |
|
INSERT IGNORE INTO `targetrule_product_rule_cl` (`entity_id`) VALUES (NEW.`product_id`); |
|
INSERT IGNORE INTO `catalogsearch_fulltext_cl` (`entity_id`) VALUES (NEW.`product_id`); |
|
END */;; |
|
DELIMITER ; |
|
/*!50003 SET sql_mode = @saved_sql_mode */ ; |
|
/*!50003 SET character_set_client = @saved_cs_client */ ; |
|
/*!50003 SET character_set_results = @saved_cs_results */ ; |
|
/*!50003 SET collation_connection = @saved_col_connection */ ; |
|
/*!50003 SET @saved_cs_client = @@character_set_client */ ; |
|
/*!50003 SET @saved_cs_results = @@character_set_results */ ; |
|
/*!50003 SET @saved_col_connection = @@collation_connection */ ; |
|
/*!50003 SET character_set_client = utf8mb3 */ ; |
|
/*!50003 SET character_set_results = utf8mb3 */ ; |
|
/*!50003 SET collation_connection = utf8mb3_general_ci */ ; |
|
/*!50003 SET @saved_sql_mode = @@sql_mode */ ; |
|
/*!50003 SET sql_mode = '' */ ; |
|
DELIMITER ;; |
|
/*!50003 CREATE*/ /*!50017 DEFINER=CURRENT_USER*/ /*!50003 TRIGGER trg_catalog_category_product_after_update AFTER UPDATE ON catalog_category_product FOR EACH ROW |
|
BEGIN |
|
IF (NOT(NEW.`entity_id` <=> OLD.`entity_id`) OR NOT(NEW.`category_id` <=> OLD.`category_id`) OR NOT(NEW.`product_id` <=> OLD.`product_id`) OR NOT(NEW.`position` <=> OLD.`position`)) THEN INSERT IGNORE INTO `algolia_products_cl` (`entity_id`) VALUES (NEW.`product_id`); END IF; |
|
IF (NOT(NEW.`entity_id` <=> OLD.`entity_id`) OR NOT(NEW.`category_id` <=> OLD.`category_id`) OR NOT(NEW.`product_id` <=> OLD.`product_id`) OR NOT(NEW.`position` <=> OLD.`position`)) THEN INSERT IGNORE INTO `catalog_product_category_cl` (`entity_id`) VALUES (NEW.`product_id`); END IF; |
|
IF (NOT(NEW.`entity_id` <=> OLD.`entity_id`) OR NOT(NEW.`category_id` <=> OLD.`category_id`) OR NOT(NEW.`product_id` <=> OLD.`product_id`) OR NOT(NEW.`position` <=> OLD.`position`)) THEN INSERT IGNORE INTO `catalogrule_product_cl` (`entity_id`) VALUES (NEW.`product_id`); END IF; |
|
IF (NOT(NEW.`entity_id` <=> OLD.`entity_id`) OR NOT(NEW.`category_id` <=> OLD.`category_id`) OR NOT(NEW.`product_id` <=> OLD.`product_id`) OR NOT(NEW.`position` <=> OLD.`position`)) THEN INSERT IGNORE INTO `targetrule_product_rule_cl` (`entity_id`) VALUES (NEW.`product_id`); END IF; |
|
IF (NOT(NEW.`entity_id` <=> OLD.`entity_id`) OR NOT(NEW.`category_id` <=> OLD.`category_id`) OR NOT(NEW.`product_id` <=> OLD.`product_id`) OR NOT(NEW.`position` <=> OLD.`position`)) THEN INSERT IGNORE INTO `catalogsearch_fulltext_cl` (`entity_id`) VALUES (NEW.`product_id`); END IF; |
|
END */;; |
|
DELIMITER ; |
|
/*!50003 SET sql_mode = @saved_sql_mode */ ; |
|
/*!50003 SET character_set_client = @saved_cs_client */ ; |
|
/*!50003 SET character_set_results = @saved_cs_results */ ; |
|
/*!50003 SET collation_connection = @saved_col_connection */ ; |
|
/*!50003 SET @saved_cs_client = @@character_set_client */ ; |
|
/*!50003 SET @saved_cs_results = @@character_set_results */ ; |
|
/*!50003 SET @saved_col_connection = @@collation_connection */ ; |
|
/*!50003 SET character_set_client = utf8mb3 */ ; |
|
/*!50003 SET character_set_results = utf8mb3 */ ; |
|
/*!50003 SET collation_connection = utf8mb3_general_ci */ ; |
|
/*!50003 SET @saved_sql_mode = @@sql_mode */ ; |
|
/*!50003 SET sql_mode = '' */ ; |
|
DELIMITER ;; |
|
/*!50003 CREATE*/ /*!50017 DEFINER=CURRENT_USER*/ /*!50003 TRIGGER trg_catalog_category_product_after_delete AFTER DELETE ON catalog_category_product FOR EACH ROW |
|
BEGIN |
|
INSERT IGNORE INTO `algolia_products_cl` (`entity_id`) VALUES (OLD.`product_id`); |
|
INSERT IGNORE INTO `catalog_product_category_cl` (`entity_id`) VALUES (OLD.`product_id`); |
|
INSERT IGNORE INTO `catalogrule_product_cl` (`entity_id`) VALUES (OLD.`product_id`); |
|
INSERT IGNORE INTO `targetrule_product_rule_cl` (`entity_id`) VALUES (OLD.`product_id`); |
|
INSERT IGNORE INTO `catalogsearch_fulltext_cl` (`entity_id`) VALUES (OLD.`product_id`); |
|
END */;; |
|
DELIMITER ; |
|
/*!50003 SET sql_mode = @saved_sql_mode */ ; |
|
/*!50003 SET character_set_client = @saved_cs_client */ ; |
|
/*!50003 SET character_set_results = @saved_cs_results */ ; |
|
/*!50003 SET collation_connection = @saved_col_connection */ ; |
|
|
|
-- |
|
-- Table structure for table `catalog_category_product_cl` |
|
-- |
|
|
|
DROP TABLE IF EXISTS `catalog_category_product_cl`; |
|
/*!40101 SET @saved_cs_client = @@character_set_client */; |
|
/*!40101 SET character_set_client = utf8 */; |
|
CREATE TABLE `catalog_category_product_cl` ( |
|
`version_id` int(10) unsigned NOT NULL AUTO_INCREMENT COMMENT 'Version ID', |
|
`entity_id` int(10) unsigned NOT NULL DEFAULT 0 COMMENT 'Entity ID', |
|
PRIMARY KEY (`version_id`) |
|
) ENGINE=InnoDB DEFAULT CHARSET=utf8mb3 COLLATE=utf8mb3_general_ci COMMENT='catalog_category_product_cl'; |
|
/*!40101 SET character_set_client = @saved_cs_client */; |
|
|
|
-- |
|
-- Table structure for table `catalog_category_product_index` |
|
-- |
|
|
|
DROP TABLE IF EXISTS `catalog_category_product_index`; |
|
/*!40101 SET @saved_cs_client = @@character_set_client */; |
|
/*!40101 SET character_set_client = utf8 */; |
|
CREATE TABLE `catalog_category_product_index` ( |
|
`category_id` int(10) unsigned NOT NULL DEFAULT 0 COMMENT 'Category ID', |
|
`product_id` int(10) unsigned NOT NULL DEFAULT 0 COMMENT 'Product ID', |
|
`position` int(11) DEFAULT NULL COMMENT 'Position', |
|
`is_parent` smallint(5) unsigned NOT NULL DEFAULT 0 COMMENT 'Is Parent', |
|
`store_id` smallint(5) unsigned NOT NULL DEFAULT 0 COMMENT 'Store ID', |
|
`visibility` smallint(5) unsigned NOT NULL COMMENT 'Visibility', |
|
PRIMARY KEY (`category_id`,`product_id`,`store_id`), |
|
KEY `CAT_CTGR_PRD_IDX_PRD_ID_STORE_ID_CTGR_ID_VISIBILITY` (`product_id`,`store_id`,`category_id`,`visibility`), |
|
KEY `CAT_CTGR_PRD_IDX_STORE_ID_CTGR_ID_VISIBILITY_IS_PARENT_POSITION` (`store_id`,`category_id`,`visibility`,`is_parent`,`position`) |
|
) ENGINE=InnoDB DEFAULT CHARSET=utf8mb3 COLLATE=utf8mb3_general_ci COMMENT='Catalog Category Product Index'; |
|
/*!40101 SET character_set_client = @saved_cs_client */; |
|
|
|
-- |
|
-- Table structure for table `catalog_category_product_index_replica` |
|
-- |
|
|
|
DROP TABLE IF EXISTS `catalog_category_product_index_replica`; |
|
/*!40101 SET @saved_cs_client = @@character_set_client */; |
|
/*!40101 SET character_set_client = utf8 */; |
|
CREATE TABLE `catalog_category_product_index_replica` ( |
|
`category_id` int(10) unsigned NOT NULL DEFAULT 0 COMMENT 'Category ID', |
|
`product_id` int(10) unsigned NOT NULL DEFAULT 0 COMMENT 'Product ID', |
|
`position` int(11) DEFAULT NULL COMMENT 'Position', |
|
`is_parent` smallint(5) unsigned NOT NULL DEFAULT 0 COMMENT 'Is Parent', |
|
`store_id` smallint(5) unsigned NOT NULL DEFAULT 0 COMMENT 'Store ID', |
|
`visibility` smallint(5) unsigned NOT NULL COMMENT 'Visibility', |
|
PRIMARY KEY (`category_id`,`product_id`,`store_id`), |
|
KEY `CAT_CTGR_PRD_IDX_PRD_ID_STORE_ID_CTGR_ID_VISIBILITY` (`product_id`,`store_id`,`category_id`,`visibility`), |
|
KEY `CAT_CTGR_PRD_IDX_STORE_ID_CTGR_ID_VISIBILITY_IS_PARENT_POSITION` (`store_id`,`category_id`,`visibility`,`is_parent`,`position`) |
|
) ENGINE=InnoDB DEFAULT CHARSET=utf8mb3 COLLATE=utf8mb3_general_ci COMMENT='Catalog Category Product Index'; |
|
/*!40101 SET character_set_client = @saved_cs_client */; |
|
|
|
-- |
|
-- Table structure for table `catalog_category_product_index_store1` |
|
-- |
|
|
|
DROP TABLE IF EXISTS `catalog_category_product_index_store1`; |
|
/*!40101 SET @saved_cs_client = @@character_set_client */; |
|
/*!40101 SET character_set_client = utf8 */; |
|
CREATE TABLE `catalog_category_product_index_store1` ( |
|
`category_id` int(10) unsigned NOT NULL DEFAULT 0 COMMENT 'Category Id', |
|
`product_id` int(10) unsigned NOT NULL DEFAULT 0 COMMENT 'Product Id', |
|
`position` int(11) DEFAULT NULL COMMENT 'Position', |
|
`is_parent` smallint(5) unsigned NOT NULL DEFAULT 0 COMMENT 'Is Parent', |
|
`store_id` smallint(5) unsigned NOT NULL DEFAULT 0 COMMENT 'Store Id', |
|
`visibility` smallint(5) unsigned NOT NULL COMMENT 'Visibility', |
|
PRIMARY KEY (`category_id`,`product_id`,`store_id`), |
|
KEY `IDX_4B965DC45C352D6E4C9DC0FF50B1FCF5` (`product_id`,`store_id`,`category_id`,`visibility`), |
|
KEY `IDX_47AB760CD6A893ACEA69A9C2E0112C60` (`store_id`,`category_id`,`visibility`,`is_parent`,`position`) |
|
) ENGINE=InnoDB DEFAULT CHARSET=utf8mb3 COLLATE=utf8mb3_general_ci COMMENT='Catalog Category Product Index Store1'; |
|
/*!40101 SET character_set_client = @saved_cs_client */; |
|
|
|
-- |
|
-- Table structure for table `catalog_category_product_index_store1_replica` |
|
-- |
|
|
|
DROP TABLE IF EXISTS `catalog_category_product_index_store1_replica`; |
|
/*!40101 SET @saved_cs_client = @@character_set_client */; |
|
/*!40101 SET character_set_client = utf8 */; |
|
CREATE TABLE `catalog_category_product_index_store1_replica` ( |
|
`category_id` int(10) unsigned NOT NULL DEFAULT 0 COMMENT 'Category Id', |
|
`product_id` int(10) unsigned NOT NULL DEFAULT 0 COMMENT 'Product Id', |
|
`position` int(11) DEFAULT NULL COMMENT 'Position', |
|
`is_parent` smallint(5) unsigned NOT NULL DEFAULT 0 COMMENT 'Is Parent', |
|
`store_id` smallint(5) unsigned NOT NULL DEFAULT 0 COMMENT 'Store Id', |
|
`visibility` smallint(5) unsigned NOT NULL COMMENT 'Visibility', |
|
PRIMARY KEY (`category_id`,`product_id`,`store_id`), |
|
KEY `CAT_CTGR_PRD_IDX_STORE1_PRD_ID_STORE_ID_CTGR_ID_VISIBILITY` (`product_id`,`store_id`,`category_id`,`visibility`), |
|
KEY `IDX_216E521C8AD125E066D2B0BAB4A08412` (`store_id`,`category_id`,`visibility`,`is_parent`,`position`) |
|
) ENGINE=InnoDB DEFAULT CHARSET=utf8mb3 COLLATE=utf8mb3_general_ci COMMENT='Catalog Category Product Index Store1 Replica'; |
|
/*!40101 SET character_set_client = @saved_cs_client */; |
|
|
|
-- |
|
-- Table structure for table `catalog_category_product_index_store3` |
|
-- |
|
|
|
DROP TABLE IF EXISTS `catalog_category_product_index_store3`; |
|
/*!40101 SET @saved_cs_client = @@character_set_client */; |
|
/*!40101 SET character_set_client = utf8 */; |
|
CREATE TABLE `catalog_category_product_index_store3` ( |
|
`category_id` int(10) unsigned NOT NULL DEFAULT 0 COMMENT 'Category Id', |
|
`product_id` int(10) unsigned NOT NULL DEFAULT 0 COMMENT 'Product Id', |
|
`position` int(11) DEFAULT NULL COMMENT 'Position', |
|
`is_parent` smallint(5) unsigned NOT NULL DEFAULT 0 COMMENT 'Is Parent', |
|
`store_id` smallint(5) unsigned NOT NULL DEFAULT 0 COMMENT 'Store Id', |
|
`visibility` smallint(5) unsigned NOT NULL COMMENT 'Visibility', |
|
PRIMARY KEY (`category_id`,`product_id`,`store_id`), |
|
KEY `IDX_43726D149468373EB56B59700A89860C` (`product_id`,`store_id`,`category_id`,`visibility`), |
|
KEY `IDX_3A62575144A54728FACD3A0D6309E61D` (`store_id`,`category_id`,`visibility`,`is_parent`,`position`) |
|
) ENGINE=InnoDB DEFAULT CHARSET=utf8mb3 COLLATE=utf8mb3_general_ci COMMENT='Catalog Category Product Index Store3'; |
|
/*!40101 SET character_set_client = @saved_cs_client */; |
|
|
|
-- |
|
-- Table structure for table `catalog_category_product_index_store3_replica` |
|
-- |
|
|
|
DROP TABLE IF EXISTS `catalog_category_product_index_store3_replica`; |
|
/*!40101 SET @saved_cs_client = @@character_set_client */; |
|
/*!40101 SET character_set_client = utf8 */; |
|
CREATE TABLE `catalog_category_product_index_store3_replica` ( |
|
`category_id` int(10) unsigned NOT NULL DEFAULT 0 COMMENT 'Category Id', |
|
`product_id` int(10) unsigned NOT NULL DEFAULT 0 COMMENT 'Product Id', |
|
`position` int(11) DEFAULT NULL COMMENT 'Position', |
|
`is_parent` smallint(5) unsigned NOT NULL DEFAULT 0 COMMENT 'Is Parent', |
|
`store_id` smallint(5) unsigned NOT NULL DEFAULT 0 COMMENT 'Store Id', |
|
`visibility` smallint(5) unsigned NOT NULL COMMENT 'Visibility', |
|
PRIMARY KEY (`category_id`,`product_id`,`store_id`), |
|
KEY `CAT_CTGR_PRD_IDX_STORE3_PRD_ID_STORE_ID_CTGR_ID_VISIBILITY` (`product_id`,`store_id`,`category_id`,`visibility`), |
|
KEY `IDX_E9342558FA31C65508E1FE75E6242607` (`store_id`,`category_id`,`visibility`,`is_parent`,`position`) |
|
) ENGINE=InnoDB DEFAULT CHARSET=utf8mb3 COLLATE=utf8mb3_general_ci COMMENT='Catalog Category Product Index Store3 Replica'; |
|
/*!40101 SET character_set_client = @saved_cs_client */; |
|
|
|
-- |
|
-- Table structure for table `catalog_category_product_index_tmp` |
|
-- |
|
|
|
DROP TABLE IF EXISTS `catalog_category_product_index_tmp`; |
|
/*!40101 SET @saved_cs_client = @@character_set_client */; |
|
/*!40101 SET character_set_client = utf8 */; |
|
CREATE TABLE `catalog_category_product_index_tmp` ( |
|
`category_id` int(10) unsigned NOT NULL DEFAULT 0 COMMENT 'Category ID', |
|
`product_id` int(10) unsigned NOT NULL DEFAULT 0 COMMENT 'Product ID', |
|
`position` int(11) NOT NULL DEFAULT 0 COMMENT 'Position', |
|
`is_parent` smallint(5) unsigned NOT NULL DEFAULT 0 COMMENT 'Is Parent', |
|
`store_id` smallint(5) unsigned NOT NULL DEFAULT 0 COMMENT 'Store ID', |
|
`visibility` smallint(5) unsigned NOT NULL COMMENT 'Visibility', |
|
PRIMARY KEY (`category_id`,`product_id`,`store_id`), |
|
KEY `CAT_CTGR_PRD_IDX_TMP_PRD_ID_CTGR_ID_STORE_ID` (`product_id`,`category_id`,`store_id`) |
|
) ENGINE=InnoDB DEFAULT CHARSET=utf8mb3 COLLATE=utf8mb3_general_ci COMMENT='Catalog Category Product Indexer temporary table'; |
|
/*!40101 SET character_set_client = @saved_cs_client */; |
|
|
|
-- |
|
-- Table structure for table `catalog_product_entity` |
|
-- |
|
|
|
DROP TABLE IF EXISTS `catalog_product_entity`; |
|
/*!40101 SET @saved_cs_client = @@character_set_client */; |
|
/*!40101 SET character_set_client = utf8 */; |
|
CREATE TABLE `catalog_product_entity` ( |
|
`entity_id` int(10) unsigned NOT NULL COMMENT 'Entity Id', |
|
`attribute_set_id` smallint(5) unsigned NOT NULL DEFAULT 0 COMMENT 'Attribute Set ID', |
|
`type_id` varchar(32) NOT NULL DEFAULT 'simple' COMMENT 'Type ID', |
|
`sku` varchar(64) NOT NULL COMMENT 'SKU', |
|
`has_options` smallint(6) NOT NULL DEFAULT 0 COMMENT 'Has Options', |
|
`required_options` smallint(5) unsigned NOT NULL DEFAULT 0 COMMENT 'Required Options', |
|
`created_at` timestamp NOT NULL DEFAULT current_timestamp() COMMENT 'Creation Time', |
|
`updated_at` timestamp NOT NULL DEFAULT current_timestamp() ON UPDATE current_timestamp() COMMENT 'Update Time', |
|
`row_id` int(10) unsigned NOT NULL AUTO_INCREMENT COMMENT 'Version Id', |
|
`created_in` bigint(20) unsigned NOT NULL DEFAULT 1 COMMENT 'Update Id', |
|
`updated_in` bigint(20) unsigned NOT NULL DEFAULT 2147483647 COMMENT 'Next Update Id', |
|
PRIMARY KEY (`row_id`), |
|
KEY `CATALOG_PRODUCT_ENTITY_ATTRIBUTE_SET_ID` (`attribute_set_id`), |
|
KEY `CATALOG_PRODUCT_ENTITY_SKU` (`sku`), |
|
KEY `CATALOG_PRODUCT_ENTITY_CREATED_IN` (`created_in`), |
|
KEY `CATALOG_PRODUCT_ENTITY_UPDATED_IN` (`updated_in`), |
|
KEY `CATALOG_PRODUCT_ENTITY_ENTITY_ID_CREATED_IN_UPDATED_IN` (`entity_id`,`created_in`,`updated_in`), |
|
CONSTRAINT `CATALOG_PRODUCT_ENTITY_ENTITY_ID_SEQUENCE_PRODUCT_SEQUENCE_VALUE` FOREIGN KEY (`entity_id`) REFERENCES `sequence_product` (`sequence_value`) ON DELETE CASCADE |
|
) ENGINE=InnoDB DEFAULT CHARSET=utf8mb3 COLLATE=utf8mb3_general_ci COMMENT='Catalog Product Table'; |
|
/*!40101 SET character_set_client = @saved_cs_client */; |
|
/*!50003 SET @saved_cs_client = @@character_set_client */ ; |
|
/*!50003 SET @saved_cs_results = @@character_set_results */ ; |
|
/*!50003 SET @saved_col_connection = @@collation_connection */ ; |
|
/*!50003 SET character_set_client = utf8mb3 */ ; |
|
/*!50003 SET character_set_results = utf8mb3 */ ; |
|
/*!50003 SET collation_connection = utf8mb3_general_ci */ ; |
|
/*!50003 SET @saved_sql_mode = @@sql_mode */ ; |
|
/*!50003 SET sql_mode = '' */ ; |
|
DELIMITER ;; |
|
/*!50003 CREATE*/ /*!50017 DEFINER=CURRENT_USER*/ /*!50003 TRIGGER trg_catalog_product_entity_after_insert AFTER INSERT ON catalog_product_entity FOR EACH ROW |
|
BEGIN |
|
INSERT IGNORE INTO `urapidflow_urlkey_index_cl` (`entity_id`) VALUES (NEW.`entity_id`); |
|
INSERT IGNORE INTO `catalogrule_product_cl` (`entity_id`) VALUES (NEW.`entity_id`); |
|
INSERT IGNORE INTO `catalog_product_price_cl` (`entity_id`) VALUES (NEW.`entity_id`); |
|
INSERT IGNORE INTO `targetrule_product_rule_cl` (`entity_id`) VALUES (NEW.`entity_id`); |
|
INSERT IGNORE INTO `catalogsearch_fulltext_cl` (`entity_id`) VALUES (NEW.`entity_id`); |
|
INSERT IGNORE INTO `algolia_products_cl` (`entity_id`) VALUES (NEW.`entity_id`); |
|
END */;; |
|
DELIMITER ; |
|
/*!50003 SET sql_mode = @saved_sql_mode */ ; |
|
/*!50003 SET character_set_client = @saved_cs_client */ ; |
|
/*!50003 SET character_set_results = @saved_cs_results */ ; |
|
/*!50003 SET collation_connection = @saved_col_connection */ ; |
|
/*!50003 SET @saved_cs_client = @@character_set_client */ ; |
|
/*!50003 SET @saved_cs_results = @@character_set_results */ ; |
|
/*!50003 SET @saved_col_connection = @@collation_connection */ ; |
|
/*!50003 SET character_set_client = utf8mb3 */ ; |
|
/*!50003 SET character_set_results = utf8mb3 */ ; |
|
/*!50003 SET collation_connection = utf8mb3_general_ci */ ; |
|
/*!50003 SET @saved_sql_mode = @@sql_mode */ ; |
|
/*!50003 SET sql_mode = '' */ ; |
|
DELIMITER ;; |
|
/*!50003 CREATE*/ /*!50017 DEFINER=CURRENT_USER*/ /*!50003 TRIGGER trg_catalog_product_entity_after_update AFTER UPDATE ON catalog_product_entity FOR EACH ROW |
|
BEGIN |
|
IF (NOT(NEW.`entity_id` <=> OLD.`entity_id`) OR NOT(NEW.`attribute_set_id` <=> OLD.`attribute_set_id`) OR NOT(NEW.`type_id` <=> OLD.`type_id`) OR NOT(NEW.`sku` <=> OLD.`sku`) OR NOT(NEW.`has_options` <=> OLD.`has_options`) OR NOT(NEW.`required_options` <=> OLD.`required_options`) OR NOT(NEW.`created_at` <=> OLD.`created_at`) OR NOT(NEW.`row_id` <=> OLD.`row_id`) OR NOT(NEW.`created_in` <=> OLD.`created_in`) OR NOT(NEW.`updated_in` <=> OLD.`updated_in`)) THEN INSERT IGNORE INTO `urapidflow_urlkey_index_cl` (`entity_id`) VALUES (NEW.`entity_id`); END IF; |
|
IF (NOT(NEW.`entity_id` <=> OLD.`entity_id`) OR NOT(NEW.`attribute_set_id` <=> OLD.`attribute_set_id`) OR NOT(NEW.`type_id` <=> OLD.`type_id`) OR NOT(NEW.`sku` <=> OLD.`sku`) OR NOT(NEW.`has_options` <=> OLD.`has_options`) OR NOT(NEW.`required_options` <=> OLD.`required_options`) OR NOT(NEW.`created_at` <=> OLD.`created_at`) OR NOT(NEW.`row_id` <=> OLD.`row_id`) OR NOT(NEW.`created_in` <=> OLD.`created_in`) OR NOT(NEW.`updated_in` <=> OLD.`updated_in`)) THEN INSERT IGNORE INTO `catalogrule_product_cl` (`entity_id`) VALUES (NEW.`entity_id`); END IF; |
|
IF (NOT(NEW.`entity_id` <=> OLD.`entity_id`) OR NOT(NEW.`attribute_set_id` <=> OLD.`attribute_set_id`) OR NOT(NEW.`type_id` <=> OLD.`type_id`) OR NOT(NEW.`sku` <=> OLD.`sku`) OR NOT(NEW.`has_options` <=> OLD.`has_options`) OR NOT(NEW.`required_options` <=> OLD.`required_options`) OR NOT(NEW.`created_at` <=> OLD.`created_at`) OR NOT(NEW.`row_id` <=> OLD.`row_id`) OR NOT(NEW.`created_in` <=> OLD.`created_in`) OR NOT(NEW.`updated_in` <=> OLD.`updated_in`)) THEN INSERT IGNORE INTO `catalog_product_price_cl` (`entity_id`) VALUES (NEW.`entity_id`); END IF; |
|
IF (NOT(NEW.`entity_id` <=> OLD.`entity_id`) OR NOT(NEW.`attribute_set_id` <=> OLD.`attribute_set_id`) OR NOT(NEW.`type_id` <=> OLD.`type_id`) OR NOT(NEW.`sku` <=> OLD.`sku`) OR NOT(NEW.`has_options` <=> OLD.`has_options`) OR NOT(NEW.`required_options` <=> OLD.`required_options`) OR NOT(NEW.`created_at` <=> OLD.`created_at`) OR NOT(NEW.`row_id` <=> OLD.`row_id`) OR NOT(NEW.`created_in` <=> OLD.`created_in`) OR NOT(NEW.`updated_in` <=> OLD.`updated_in`)) THEN INSERT IGNORE INTO `targetrule_product_rule_cl` (`entity_id`) VALUES (NEW.`entity_id`); END IF; |
|
IF (NOT(NEW.`entity_id` <=> OLD.`entity_id`) OR NOT(NEW.`attribute_set_id` <=> OLD.`attribute_set_id`) OR NOT(NEW.`type_id` <=> OLD.`type_id`) OR NOT(NEW.`sku` <=> OLD.`sku`) OR NOT(NEW.`has_options` <=> OLD.`has_options`) OR NOT(NEW.`required_options` <=> OLD.`required_options`) OR NOT(NEW.`created_at` <=> OLD.`created_at`) OR NOT(NEW.`row_id` <=> OLD.`row_id`) OR NOT(NEW.`created_in` <=> OLD.`created_in`) OR NOT(NEW.`updated_in` <=> OLD.`updated_in`)) THEN INSERT IGNORE INTO `catalogsearch_fulltext_cl` (`entity_id`) VALUES (NEW.`entity_id`); END IF; |
|
IF (NOT(NEW.`entity_id` <=> OLD.`entity_id`) OR NOT(NEW.`attribute_set_id` <=> OLD.`attribute_set_id`) OR NOT(NEW.`type_id` <=> OLD.`type_id`) OR NOT(NEW.`sku` <=> OLD.`sku`) OR NOT(NEW.`has_options` <=> OLD.`has_options`) OR NOT(NEW.`required_options` <=> OLD.`required_options`) OR NOT(NEW.`created_at` <=> OLD.`created_at`) OR NOT(NEW.`row_id` <=> OLD.`row_id`) OR NOT(NEW.`created_in` <=> OLD.`created_in`) OR NOT(NEW.`updated_in` <=> OLD.`updated_in`)) THEN INSERT IGNORE INTO `algolia_products_cl` (`entity_id`) VALUES (NEW.`entity_id`); END IF; |
|
END */;; |
|
DELIMITER ; |
|
/*!50003 SET sql_mode = @saved_sql_mode */ ; |
|
/*!50003 SET character_set_client = @saved_cs_client */ ; |
|
/*!50003 SET character_set_results = @saved_cs_results */ ; |
|
/*!50003 SET collation_connection = @saved_col_connection */ ; |
|
/*!50003 SET @saved_cs_client = @@character_set_client */ ; |
|
/*!50003 SET @saved_cs_results = @@character_set_results */ ; |
|
/*!50003 SET @saved_col_connection = @@collation_connection */ ; |
|
/*!50003 SET character_set_client = utf8mb3 */ ; |
|
/*!50003 SET character_set_results = utf8mb3 */ ; |
|
/*!50003 SET collation_connection = utf8mb3_general_ci */ ; |
|
/*!50003 SET @saved_sql_mode = @@sql_mode */ ; |
|
/*!50003 SET sql_mode = '' */ ; |
|
DELIMITER ;; |
|
/*!50003 CREATE*/ /*!50017 DEFINER=CURRENT_USER*/ /*!50003 TRIGGER trg_catalog_product_entity_after_delete AFTER DELETE ON catalog_product_entity FOR EACH ROW |
|
BEGIN |
|
INSERT IGNORE INTO `urapidflow_urlkey_index_cl` (`entity_id`) VALUES (OLD.`entity_id`); |
|
INSERT IGNORE INTO `catalogrule_product_cl` (`entity_id`) VALUES (OLD.`entity_id`); |
|
INSERT IGNORE INTO `catalog_product_price_cl` (`entity_id`) VALUES (OLD.`entity_id`); |
|
INSERT IGNORE INTO `targetrule_product_rule_cl` (`entity_id`) VALUES (OLD.`entity_id`); |
|
INSERT IGNORE INTO `catalogsearch_fulltext_cl` (`entity_id`) VALUES (OLD.`entity_id`); |
|
INSERT IGNORE INTO `algolia_products_cl` (`entity_id`) VALUES (OLD.`entity_id`); |
|
END */;; |
|
DELIMITER ; |
|
/*!50003 SET sql_mode = @saved_sql_mode */ ; |
|
/*!50003 SET character_set_client = @saved_cs_client */ ; |
|
/*!50003 SET character_set_results = @saved_cs_results */ ; |
|
/*!50003 SET collation_connection = @saved_col_connection */ ; |
|
|
|
-- |
|
-- Table structure for table `catalog_product_entity_datetime` |
|
-- |
|
|
|
DROP TABLE IF EXISTS `catalog_product_entity_datetime`; |
|
/*!40101 SET @saved_cs_client = @@character_set_client */; |
|
/*!40101 SET character_set_client = utf8 */; |
|
CREATE TABLE `catalog_product_entity_datetime` ( |
|
`value_id` int(11) NOT NULL AUTO_INCREMENT COMMENT 'Value ID', |
|
`attribute_id` smallint(5) unsigned NOT NULL DEFAULT 0 COMMENT 'Attribute ID', |
|
`store_id` smallint(5) unsigned NOT NULL DEFAULT 0 COMMENT 'Store ID', |
|
`value` datetime DEFAULT NULL COMMENT 'Value', |
|
`row_id` int(10) unsigned NOT NULL COMMENT 'Version Id', |
|
PRIMARY KEY (`value_id`), |
|
UNIQUE KEY `CATALOG_PRODUCT_ENTITY_DATETIME_ROW_ID_ATTRIBUTE_ID_STORE_ID` (`row_id`,`attribute_id`,`store_id`), |
|
KEY `CATALOG_PRODUCT_ENTITY_DATETIME_ATTRIBUTE_ID` (`attribute_id`), |
|
KEY `CATALOG_PRODUCT_ENTITY_DATETIME_STORE_ID` (`store_id`), |
|
CONSTRAINT `CATALOG_PRODUCT_ENTITY_DATETIME_STORE_ID_STORE_STORE_ID` FOREIGN KEY (`store_id`) REFERENCES `store` (`store_id`) ON DELETE CASCADE, |
|
CONSTRAINT `CAT_PRD_ENTT_DTIME_ATTR_ID_EAV_ATTR_ATTR_ID` FOREIGN KEY (`attribute_id`) REFERENCES `eav_attribute` (`attribute_id`) ON DELETE CASCADE, |
|
CONSTRAINT `CAT_PRD_ENTT_DTIME_ROW_ID_CAT_PRD_ENTT_ROW_ID` FOREIGN KEY (`row_id`) REFERENCES `catalog_product_entity` (`row_id`) ON DELETE CASCADE |
|
) ENGINE=InnoDB DEFAULT CHARSET=utf8mb3 COLLATE=utf8mb3_general_ci COMMENT='Catalog Product Datetime Attribute Backend Table'; |
|
/*!40101 SET character_set_client = @saved_cs_client */; |
|
/*!50003 SET @saved_cs_client = @@character_set_client */ ; |
|
/*!50003 SET @saved_cs_results = @@character_set_results */ ; |
|
/*!50003 SET @saved_col_connection = @@collation_connection */ ; |
|
/*!50003 SET character_set_client = utf8mb3 */ ; |
|
/*!50003 SET character_set_results = utf8mb3 */ ; |
|
/*!50003 SET collation_connection = utf8mb3_general_ci */ ; |
|
/*!50003 SET @saved_sql_mode = @@sql_mode */ ; |
|
/*!50003 SET sql_mode = '' */ ; |
|
DELIMITER ;; |
|
/*!50003 CREATE*/ /*!50017 DEFINER=CURRENT_USER*/ /*!50003 TRIGGER trg_catalog_product_entity_datetime_after_insert AFTER INSERT ON catalog_product_entity_datetime FOR EACH ROW |
|
BEGIN |
|
SET @entity_id = (SELECT `entity_id` FROM `catalog_product_entity` WHERE `row_id` = NEW.`row_id`); |
|
INSERT IGNORE INTO `algolia_products_cl` (`entity_id`) values(@entity_id); |
|
INSERT IGNORE INTO `catalogrule_product_cl` (`entity_id`) values(@entity_id); |
|
INSERT IGNORE INTO `catalog_product_price_cl` (`entity_id`) values(@entity_id); |
|
INSERT IGNORE INTO `catalogsearch_fulltext_cl` (`entity_id`) values(@entity_id); |
|
END */;; |
|
DELIMITER ; |
|
/*!50003 SET sql_mode = @saved_sql_mode */ ; |
|
/*!50003 SET character_set_client = @saved_cs_client */ ; |
|
/*!50003 SET character_set_results = @saved_cs_results */ ; |
|
/*!50003 SET collation_connection = @saved_col_connection */ ; |
|
/*!50003 SET @saved_cs_client = @@character_set_client */ ; |
|
/*!50003 SET @saved_cs_results = @@character_set_results */ ; |
|
/*!50003 SET @saved_col_connection = @@collation_connection */ ; |
|
/*!50003 SET character_set_client = utf8mb3 */ ; |
|
/*!50003 SET character_set_results = utf8mb3 */ ; |
|
/*!50003 SET collation_connection = utf8mb3_general_ci */ ; |
|
/*!50003 SET @saved_sql_mode = @@sql_mode */ ; |
|
/*!50003 SET sql_mode = '' */ ; |
|
DELIMITER ;; |
|
/*!50003 CREATE*/ /*!50017 DEFINER=CURRENT_USER*/ /*!50003 TRIGGER trg_catalog_product_entity_datetime_after_update AFTER UPDATE ON catalog_product_entity_datetime FOR EACH ROW |
|
BEGIN |
|
SET @entity_id = (SELECT `entity_id` FROM `catalog_product_entity` WHERE `row_id` = NEW.`row_id`); |
|
IF (NOT(NEW.`value_id` <=> OLD.`value_id`) OR NOT(NEW.`attribute_id` <=> OLD.`attribute_id`) OR NOT(NEW.`store_id` <=> OLD.`store_id`) OR NOT(NEW.`value` <=> OLD.`value`) OR NOT(NEW.`row_id` <=> OLD.`row_id`)) THEN INSERT IGNORE INTO `algolia_products_cl` (`entity_id`) values(@entity_id); END IF; |
|
IF (NOT(NEW.`value_id` <=> OLD.`value_id`) OR NOT(NEW.`attribute_id` <=> OLD.`attribute_id`) OR NOT(NEW.`store_id` <=> OLD.`store_id`) OR NOT(NEW.`value` <=> OLD.`value`) OR NOT(NEW.`row_id` <=> OLD.`row_id`)) THEN INSERT IGNORE INTO `catalogrule_product_cl` (`entity_id`) values(@entity_id); END IF; |
|
IF (NOT(NEW.`value_id` <=> OLD.`value_id`) OR NOT(NEW.`attribute_id` <=> OLD.`attribute_id`) OR NOT(NEW.`store_id` <=> OLD.`store_id`) OR NOT(NEW.`value` <=> OLD.`value`) OR NOT(NEW.`row_id` <=> OLD.`row_id`)) THEN INSERT IGNORE INTO `catalog_product_price_cl` (`entity_id`) values(@entity_id); END IF; |
|
IF (NOT(NEW.`value_id` <=> OLD.`value_id`) OR NOT(NEW.`attribute_id` <=> OLD.`attribute_id`) OR NOT(NEW.`store_id` <=> OLD.`store_id`) OR NOT(NEW.`value` <=> OLD.`value`) OR NOT(NEW.`row_id` <=> OLD.`row_id`)) THEN INSERT IGNORE INTO `catalogsearch_fulltext_cl` (`entity_id`) values(@entity_id); END IF; |
|
END */;; |
|
DELIMITER ; |
|
/*!50003 SET sql_mode = @saved_sql_mode */ ; |
|
/*!50003 SET character_set_client = @saved_cs_client */ ; |
|
/*!50003 SET character_set_results = @saved_cs_results */ ; |
|
/*!50003 SET collation_connection = @saved_col_connection */ ; |
|
/*!50003 SET @saved_cs_client = @@character_set_client */ ; |
|
/*!50003 SET @saved_cs_results = @@character_set_results */ ; |
|
/*!50003 SET @saved_col_connection = @@collation_connection */ ; |
|
/*!50003 SET character_set_client = utf8mb3 */ ; |
|
/*!50003 SET character_set_results = utf8mb3 */ ; |
|
/*!50003 SET collation_connection = utf8mb3_general_ci */ ; |
|
/*!50003 SET @saved_sql_mode = @@sql_mode */ ; |
|
/*!50003 SET sql_mode = '' */ ; |
|
DELIMITER ;; |
|
/*!50003 CREATE*/ /*!50017 DEFINER=CURRENT_USER*/ /*!50003 TRIGGER trg_catalog_product_entity_datetime_after_delete AFTER DELETE ON catalog_product_entity_datetime FOR EACH ROW |
|
BEGIN |
|
SET @entity_id = (SELECT `entity_id` FROM `catalog_product_entity` WHERE `row_id` = OLD.`row_id`); |
|
INSERT IGNORE INTO `algolia_products_cl` (`entity_id`) values(@entity_id); |
|
INSERT IGNORE INTO `catalogrule_product_cl` (`entity_id`) values(@entity_id); |
|
INSERT IGNORE INTO `catalog_product_price_cl` (`entity_id`) values(@entity_id); |
|
INSERT IGNORE INTO `catalogsearch_fulltext_cl` (`entity_id`) values(@entity_id); |
|
END */;; |
|
DELIMITER ; |
|
/*!50003 SET sql_mode = @saved_sql_mode */ ; |
|
/*!50003 SET character_set_client = @saved_cs_client */ ; |
|
/*!50003 SET character_set_results = @saved_cs_results */ ; |
|
/*!50003 SET collation_connection = @saved_col_connection */ ; |
|
|
|
-- |
|
-- Table structure for table `catalog_product_entity_decimal` |
|
-- |
|
|
|
DROP TABLE IF EXISTS `catalog_product_entity_decimal`; |
|
/*!40101 SET @saved_cs_client = @@character_set_client */; |
|
/*!40101 SET character_set_client = utf8 */; |
|
CREATE TABLE `catalog_product_entity_decimal` ( |
|
`value_id` int(11) NOT NULL AUTO_INCREMENT COMMENT 'Value ID', |
|
`attribute_id` smallint(5) unsigned NOT NULL DEFAULT 0 COMMENT 'Attribute ID', |
|
`store_id` smallint(5) unsigned NOT NULL DEFAULT 0 COMMENT 'Store ID', |
|
`value` decimal(20,6) DEFAULT NULL COMMENT 'Value', |
|
`row_id` int(10) unsigned NOT NULL COMMENT 'Version Id', |
|
PRIMARY KEY (`value_id`), |
|
UNIQUE KEY `CATALOG_PRODUCT_ENTITY_DECIMAL_ROW_ID_ATTRIBUTE_ID_STORE_ID` (`row_id`,`attribute_id`,`store_id`), |
|
KEY `CATALOG_PRODUCT_ENTITY_DECIMAL_STORE_ID` (`store_id`), |
|
KEY `CATALOG_PRODUCT_ENTITY_DECIMAL_ATTRIBUTE_ID` (`attribute_id`), |
|
CONSTRAINT `CATALOG_PRODUCT_ENTITY_DECIMAL_STORE_ID_STORE_STORE_ID` FOREIGN KEY (`store_id`) REFERENCES `store` (`store_id`) ON DELETE CASCADE, |
|
CONSTRAINT `CAT_PRD_ENTT_DEC_ATTR_ID_EAV_ATTR_ATTR_ID` FOREIGN KEY (`attribute_id`) REFERENCES `eav_attribute` (`attribute_id`) ON DELETE CASCADE, |
|
CONSTRAINT `CAT_PRD_ENTT_DEC_ROW_ID_CAT_PRD_ENTT_ROW_ID` FOREIGN KEY (`row_id`) REFERENCES `catalog_product_entity` (`row_id`) ON DELETE CASCADE |
|
) ENGINE=InnoDB DEFAULT CHARSET=utf8mb3 COLLATE=utf8mb3_general_ci COMMENT='Catalog Product Decimal Attribute Backend Table'; |
|
/*!40101 SET character_set_client = @saved_cs_client */; |
|
/*!50003 SET @saved_cs_client = @@character_set_client */ ; |
|
/*!50003 SET @saved_cs_results = @@character_set_results */ ; |
|
/*!50003 SET @saved_col_connection = @@collation_connection */ ; |
|
/*!50003 SET character_set_client = utf8mb3 */ ; |
|
/*!50003 SET character_set_results = utf8mb3 */ ; |
|
/*!50003 SET collation_connection = utf8mb3_general_ci */ ; |
|
/*!50003 SET @saved_sql_mode = @@sql_mode */ ; |
|
/*!50003 SET sql_mode = '' */ ; |
|
DELIMITER ;; |
|
/*!50003 CREATE*/ /*!50017 DEFINER=CURRENT_USER*/ /*!50003 TRIGGER trg_catalog_product_entity_decimal_after_insert AFTER INSERT ON catalog_product_entity_decimal FOR EACH ROW |
|
BEGIN |
|
SET @entity_id = (SELECT `entity_id` FROM `catalog_product_entity` WHERE `row_id` = NEW.`row_id`); |
|
INSERT IGNORE INTO `algolia_products_cl` (`entity_id`) values(@entity_id); |
|
INSERT IGNORE INTO `catalog_product_attribute_cl` (`entity_id`) values(@entity_id); |
|
INSERT IGNORE INTO `catalogrule_product_cl` (`entity_id`) values(@entity_id); |
|
INSERT IGNORE INTO `catalog_product_price_cl` (`entity_id`) values(@entity_id); |
|
INSERT IGNORE INTO `catalogsearch_fulltext_cl` (`entity_id`) values(@entity_id); |
|
END */;; |
|
DELIMITER ; |
|
/*!50003 SET sql_mode = @saved_sql_mode */ ; |
|
/*!50003 SET character_set_client = @saved_cs_client */ ; |
|
/*!50003 SET character_set_results = @saved_cs_results */ ; |
|
/*!50003 SET collation_connection = @saved_col_connection */ ; |
|
/*!50003 SET @saved_cs_client = @@character_set_client */ ; |
|
/*!50003 SET @saved_cs_results = @@character_set_results */ ; |
|
/*!50003 SET @saved_col_connection = @@collation_connection */ ; |
|
/*!50003 SET character_set_client = utf8mb3 */ ; |
|
/*!50003 SET character_set_results = utf8mb3 */ ; |
|
/*!50003 SET collation_connection = utf8mb3_general_ci */ ; |
|
/*!50003 SET @saved_sql_mode = @@sql_mode */ ; |
|
/*!50003 SET sql_mode = '' */ ; |
|
DELIMITER ;; |
|
/*!50003 CREATE*/ /*!50017 DEFINER=CURRENT_USER*/ /*!50003 TRIGGER trg_catalog_product_entity_decimal_after_update AFTER UPDATE ON catalog_product_entity_decimal FOR EACH ROW |
|
BEGIN |
|
SET @entity_id = (SELECT `entity_id` FROM `catalog_product_entity` WHERE `row_id` = NEW.`row_id`); |
|
IF (NOT(NEW.`value_id` <=> OLD.`value_id`) OR NOT(NEW.`attribute_id` <=> OLD.`attribute_id`) OR NOT(NEW.`store_id` <=> OLD.`store_id`) OR NOT(NEW.`value` <=> OLD.`value`) OR NOT(NEW.`row_id` <=> OLD.`row_id`)) THEN INSERT IGNORE INTO `algolia_products_cl` (`entity_id`) values(@entity_id); END IF; |
|
IF (NOT(NEW.`value_id` <=> OLD.`value_id`) OR NOT(NEW.`attribute_id` <=> OLD.`attribute_id`) OR NOT(NEW.`store_id` <=> OLD.`store_id`) OR NOT(NEW.`value` <=> OLD.`value`) OR NOT(NEW.`row_id` <=> OLD.`row_id`)) THEN INSERT IGNORE INTO `catalog_product_attribute_cl` (`entity_id`) values(@entity_id); END IF; |
|
IF (NOT(NEW.`value_id` <=> OLD.`value_id`) OR NOT(NEW.`attribute_id` <=> OLD.`attribute_id`) OR NOT(NEW.`store_id` <=> OLD.`store_id`) OR NOT(NEW.`value` <=> OLD.`value`) OR NOT(NEW.`row_id` <=> OLD.`row_id`)) THEN INSERT IGNORE INTO `catalogrule_product_cl` (`entity_id`) values(@entity_id); END IF; |
|
IF (NOT(NEW.`value_id` <=> OLD.`value_id`) OR NOT(NEW.`attribute_id` <=> OLD.`attribute_id`) OR NOT(NEW.`store_id` <=> OLD.`store_id`) OR NOT(NEW.`value` <=> OLD.`value`) OR NOT(NEW.`row_id` <=> OLD.`row_id`)) THEN INSERT IGNORE INTO `catalog_product_price_cl` (`entity_id`) values(@entity_id); END IF; |
|
IF (NOT(NEW.`value_id` <=> OLD.`value_id`) OR NOT(NEW.`attribute_id` <=> OLD.`attribute_id`) OR NOT(NEW.`store_id` <=> OLD.`store_id`) OR NOT(NEW.`value` <=> OLD.`value`) OR NOT(NEW.`row_id` <=> OLD.`row_id`)) THEN INSERT IGNORE INTO `catalogsearch_fulltext_cl` (`entity_id`) values(@entity_id); END IF; |
|
END */;; |
|
DELIMITER ; |
|
/*!50003 SET sql_mode = @saved_sql_mode */ ; |
|
/*!50003 SET character_set_client = @saved_cs_client */ ; |
|
/*!50003 SET character_set_results = @saved_cs_results */ ; |
|
/*!50003 SET collation_connection = @saved_col_connection */ ; |
|
/*!50003 SET @saved_cs_client = @@character_set_client */ ; |
|
/*!50003 SET @saved_cs_results = @@character_set_results */ ; |
|
/*!50003 SET @saved_col_connection = @@collation_connection */ ; |
|
/*!50003 SET character_set_client = utf8mb3 */ ; |
|
/*!50003 SET character_set_results = utf8mb3 */ ; |
|
/*!50003 SET collation_connection = utf8mb3_general_ci */ ; |
|
/*!50003 SET @saved_sql_mode = @@sql_mode */ ; |
|
/*!50003 SET sql_mode = '' */ ; |
|
DELIMITER ;; |
|
/*!50003 CREATE*/ /*!50017 DEFINER=CURRENT_USER*/ /*!50003 TRIGGER trg_catalog_product_entity_decimal_after_delete AFTER DELETE ON catalog_product_entity_decimal FOR EACH ROW |
|
BEGIN |
|
SET @entity_id = (SELECT `entity_id` FROM `catalog_product_entity` WHERE `row_id` = OLD.`row_id`); |
|
INSERT IGNORE INTO `algolia_products_cl` (`entity_id`) values(@entity_id); |
|
INSERT IGNORE INTO `catalog_product_attribute_cl` (`entity_id`) values(@entity_id); |
|
INSERT IGNORE INTO `catalogrule_product_cl` (`entity_id`) values(@entity_id); |
|
INSERT IGNORE INTO `catalog_product_price_cl` (`entity_id`) values(@entity_id); |
|
INSERT IGNORE INTO `catalogsearch_fulltext_cl` (`entity_id`) values(@entity_id); |
|
END */;; |
|
DELIMITER ; |
|
/*!50003 SET sql_mode = @saved_sql_mode */ ; |
|
/*!50003 SET character_set_client = @saved_cs_client */ ; |
|
/*!50003 SET character_set_results = @saved_cs_results */ ; |
|
/*!50003 SET collation_connection = @saved_col_connection */ ; |
|
|
|
-- |
|
-- Table structure for table `catalog_product_entity_gallery` |
|
-- |
|
|
|
DROP TABLE IF EXISTS `catalog_product_entity_gallery`; |
|
/*!40101 SET @saved_cs_client = @@character_set_client */; |
|
/*!40101 SET character_set_client = utf8 */; |
|
CREATE TABLE `catalog_product_entity_gallery` ( |
|
`value_id` int(11) NOT NULL AUTO_INCREMENT COMMENT 'Value ID', |
|
`attribute_id` smallint(5) unsigned NOT NULL DEFAULT 0 COMMENT 'Attribute ID', |
|
`store_id` smallint(5) unsigned NOT NULL DEFAULT 0 COMMENT 'Store ID', |
|
`position` int(11) NOT NULL DEFAULT 0 COMMENT 'Position', |
|
`value` varchar(255) DEFAULT NULL COMMENT 'Value', |
|
`row_id` int(10) unsigned NOT NULL COMMENT 'Version Id', |
|
PRIMARY KEY (`value_id`), |
|
UNIQUE KEY `CATALOG_PRODUCT_ENTITY_GALLERY_ROW_ID_ATTRIBUTE_ID_STORE_ID` (`row_id`,`attribute_id`,`store_id`), |
|
KEY `CATALOG_PRODUCT_ENTITY_GALLERY_ATTRIBUTE_ID` (`attribute_id`), |
|
KEY `CATALOG_PRODUCT_ENTITY_GALLERY_STORE_ID` (`store_id`), |
|
KEY `CATALOG_PRODUCT_ENTITY_GALLERY_ROW_ID` (`row_id`), |
|
CONSTRAINT `CATALOG_PRODUCT_ENTITY_GALLERY_STORE_ID_STORE_STORE_ID` FOREIGN KEY (`store_id`) REFERENCES `store` (`store_id`) ON DELETE CASCADE, |
|
CONSTRAINT `CAT_PRD_ENTT_GLR_ATTR_ID_EAV_ATTR_ATTR_ID` FOREIGN KEY (`attribute_id`) REFERENCES `eav_attribute` (`attribute_id`) ON DELETE CASCADE, |
|
CONSTRAINT `CAT_PRD_ENTT_GLR_ROW_ID_CAT_PRD_ENTT_ROW_ID` FOREIGN KEY (`row_id`) REFERENCES `catalog_product_entity` (`row_id`) ON DELETE CASCADE |
|
) ENGINE=InnoDB DEFAULT CHARSET=utf8mb3 COLLATE=utf8mb3_general_ci COMMENT='Catalog Product Gallery Attribute Backend Table'; |
|
/*!40101 SET character_set_client = @saved_cs_client */; |
|
/*!50003 SET @saved_cs_client = @@character_set_client */ ; |
|
/*!50003 SET @saved_cs_results = @@character_set_results */ ; |
|
/*!50003 SET @saved_col_connection = @@collation_connection */ ; |
|
/*!50003 SET character_set_client = utf8mb3 */ ; |
|
/*!50003 SET character_set_results = utf8mb3 */ ; |
|
/*!50003 SET collation_connection = utf8mb3_general_ci */ ; |
|
/*!50003 SET @saved_sql_mode = @@sql_mode */ ; |
|
/*!50003 SET sql_mode = '' */ ; |
|
DELIMITER ;; |
|
/*!50003 CREATE*/ /*!50017 DEFINER=CURRENT_USER*/ /*!50003 TRIGGER trg_catalog_product_entity_gallery_after_insert AFTER INSERT ON catalog_product_entity_gallery FOR EACH ROW |
|
BEGIN |
|
SET @entity_id = (SELECT `entity_id` FROM `catalog_product_entity` WHERE `row_id` = NEW.`row_id`); |
|
INSERT IGNORE INTO `algolia_products_cl` (`entity_id`) values(@entity_id); |
|
END */;; |
|
DELIMITER ; |
|
/*!50003 SET sql_mode = @saved_sql_mode */ ; |
|
/*!50003 SET character_set_client = @saved_cs_client */ ; |
|
/*!50003 SET character_set_results = @saved_cs_results */ ; |
|
/*!50003 SET collation_connection = @saved_col_connection */ ; |
|
/*!50003 SET @saved_cs_client = @@character_set_client */ ; |
|
/*!50003 SET @saved_cs_results = @@character_set_results */ ; |
|
/*!50003 SET @saved_col_connection = @@collation_connection */ ; |
|
/*!50003 SET character_set_client = utf8mb3 */ ; |
|
/*!50003 SET character_set_results = utf8mb3 */ ; |
|
/*!50003 SET collation_connection = utf8mb3_general_ci */ ; |
|
/*!50003 SET @saved_sql_mode = @@sql_mode */ ; |
|
/*!50003 SET sql_mode = '' */ ; |
|
DELIMITER ;; |
|
/*!50003 CREATE*/ /*!50017 DEFINER=CURRENT_USER*/ /*!50003 TRIGGER trg_catalog_product_entity_gallery_after_update AFTER UPDATE ON catalog_product_entity_gallery FOR EACH ROW |
|
BEGIN |
|
SET @entity_id = (SELECT `entity_id` FROM `catalog_product_entity` WHERE `row_id` = NEW.`row_id`); |
|
IF (NOT(NEW.`value_id` <=> OLD.`value_id`) OR NOT(NEW.`attribute_id` <=> OLD.`attribute_id`) OR NOT(NEW.`store_id` <=> OLD.`store_id`) OR NOT(NEW.`position` <=> OLD.`position`) OR NOT(NEW.`value` <=> OLD.`value`) OR NOT(NEW.`row_id` <=> OLD.`row_id`)) THEN INSERT IGNORE INTO `algolia_products_cl` (`entity_id`) values(@entity_id); END IF; |
|
END */;; |
|
DELIMITER ; |
|
/*!50003 SET sql_mode = @saved_sql_mode */ ; |
|
/*!50003 SET character_set_client = @saved_cs_client */ ; |
|
/*!50003 SET character_set_results = @saved_cs_results */ ; |
|
/*!50003 SET collation_connection = @saved_col_connection */ ; |
|
/*!50003 SET @saved_cs_client = @@character_set_client */ ; |
|
/*!50003 SET @saved_cs_results = @@character_set_results */ ; |
|
/*!50003 SET @saved_col_connection = @@collation_connection */ ; |
|
/*!50003 SET character_set_client = utf8mb3 */ ; |
|
/*!50003 SET character_set_results = utf8mb3 */ ; |
|
/*!50003 SET collation_connection = utf8mb3_general_ci */ ; |
|
/*!50003 SET @saved_sql_mode = @@sql_mode */ ; |
|
/*!50003 SET sql_mode = '' */ ; |
|
DELIMITER ;; |
|
/*!50003 CREATE*/ /*!50017 DEFINER=CURRENT_USER*/ /*!50003 TRIGGER trg_catalog_product_entity_gallery_after_delete AFTER DELETE ON catalog_product_entity_gallery FOR EACH ROW |
|
BEGIN |
|
SET @entity_id = (SELECT `entity_id` FROM `catalog_product_entity` WHERE `row_id` = OLD.`row_id`); |
|
INSERT IGNORE INTO `algolia_products_cl` (`entity_id`) values(@entity_id); |
|
END */;; |
|
DELIMITER ; |
|
/*!50003 SET sql_mode = @saved_sql_mode */ ; |
|
/*!50003 SET character_set_client = @saved_cs_client */ ; |
|
/*!50003 SET character_set_results = @saved_cs_results */ ; |
|
/*!50003 SET collation_connection = @saved_col_connection */ ; |
|
|
|
-- |
|
-- Table structure for table `catalog_product_entity_int` |
|
-- |
|
|
|
DROP TABLE IF EXISTS `catalog_product_entity_int`; |
|
/*!40101 SET @saved_cs_client = @@character_set_client */; |
|
/*!40101 SET character_set_client = utf8 */; |
|
CREATE TABLE `catalog_product_entity_int` ( |
|
`value_id` int(11) NOT NULL AUTO_INCREMENT COMMENT 'Value ID', |
|
`attribute_id` smallint(5) unsigned NOT NULL DEFAULT 0 COMMENT 'Attribute ID', |
|
`store_id` smallint(5) unsigned NOT NULL DEFAULT 0 COMMENT 'Store ID', |
|
`value` int(11) DEFAULT NULL COMMENT 'Value', |
|
`row_id` int(10) unsigned NOT NULL COMMENT 'Version Id', |
|
PRIMARY KEY (`value_id`), |
|
UNIQUE KEY `CATALOG_PRODUCT_ENTITY_INT_ROW_ID_ATTRIBUTE_ID_STORE_ID` (`row_id`,`attribute_id`,`store_id`), |
|
KEY `CATALOG_PRODUCT_ENTITY_INT_ATTRIBUTE_ID` (`attribute_id`), |
|
KEY `CATALOG_PRODUCT_ENTITY_INT_STORE_ID` (`store_id`), |
|
KEY `CATALOG_PRODUCT_ENTITY_INT_ATTRIBUTE_ID_STORE_ID_VALUE` (`attribute_id`,`store_id`,`value`), |
|
CONSTRAINT `CATALOG_PRODUCT_ENTITY_INT_ROW_ID_CATALOG_PRODUCT_ENTITY_ROW_ID` FOREIGN KEY (`row_id`) REFERENCES `catalog_product_entity` (`row_id`) ON DELETE CASCADE, |
|
CONSTRAINT `CATALOG_PRODUCT_ENTITY_INT_STORE_ID_STORE_STORE_ID` FOREIGN KEY (`store_id`) REFERENCES `store` (`store_id`) ON DELETE CASCADE, |
|
CONSTRAINT `CAT_PRD_ENTT_INT_ATTR_ID_EAV_ATTR_ATTR_ID` FOREIGN KEY (`attribute_id`) REFERENCES `eav_attribute` (`attribute_id`) ON DELETE CASCADE |
|
) ENGINE=InnoDB DEFAULT CHARSET=utf8mb3 COLLATE=utf8mb3_general_ci COMMENT='Catalog Product Integer Attribute Backend Table'; |
|
/*!40101 SET character_set_client = @saved_cs_client */; |
|
/*!50003 SET @saved_cs_client = @@character_set_client */ ; |
|
/*!50003 SET @saved_cs_results = @@character_set_results */ ; |
|
/*!50003 SET @saved_col_connection = @@collation_connection */ ; |
|
/*!50003 SET character_set_client = utf8mb3 */ ; |
|
/*!50003 SET character_set_results = utf8mb3 */ ; |
|
/*!50003 SET collation_connection = utf8mb3_general_ci */ ; |
|
/*!50003 SET @saved_sql_mode = @@sql_mode */ ; |
|
/*!50003 SET sql_mode = '' */ ; |
|
DELIMITER ;; |
|
/*!50003 CREATE*/ /*!50017 DEFINER=CURRENT_USER*/ /*!50003 TRIGGER trg_catalog_product_entity_int_after_insert AFTER INSERT ON catalog_product_entity_int FOR EACH ROW |
|
BEGIN |
|
SET @entity_id = (SELECT `entity_id` FROM `catalog_product_entity` WHERE `row_id` = NEW.`row_id`); |
|
INSERT IGNORE INTO `algolia_products_cl` (`entity_id`) values(@entity_id); |
|
INSERT IGNORE INTO `catalog_product_category_cl` (`entity_id`) values(@entity_id); |
|
INSERT IGNORE INTO `catalog_product_attribute_cl` (`entity_id`) values(@entity_id); |
|
INSERT IGNORE INTO `catalogrule_product_cl` (`entity_id`) values(@entity_id); |
|
INSERT IGNORE INTO `cataloginventory_stock_cl` (`entity_id`) values(@entity_id); |
|
INSERT IGNORE INTO `catalog_product_price_cl` (`entity_id`) values(@entity_id); |
|
INSERT IGNORE INTO `catalogsearch_fulltext_cl` (`entity_id`) values(@entity_id); |
|
END */;; |
|
DELIMITER ; |
|
/*!50003 SET sql_mode = @saved_sql_mode */ ; |
|
/*!50003 SET character_set_client = @saved_cs_client */ ; |
|
/*!50003 SET character_set_results = @saved_cs_results */ ; |
|
/*!50003 SET collation_connection = @saved_col_connection */ ; |
|
/*!50003 SET @saved_cs_client = @@character_set_client */ ; |
|
/*!50003 SET @saved_cs_results = @@character_set_results */ ; |
|
/*!50003 SET @saved_col_connection = @@collation_connection */ ; |
|
/*!50003 SET character_set_client = utf8mb3 */ ; |
|
/*!50003 SET character_set_results = utf8mb3 */ ; |
|
/*!50003 SET collation_connection = utf8mb3_general_ci */ ; |
|
/*!50003 SET @saved_sql_mode = @@sql_mode */ ; |
|
/*!50003 SET sql_mode = '' */ ; |
|
DELIMITER ;; |
|
/*!50003 CREATE*/ /*!50017 DEFINER=CURRENT_USER*/ /*!50003 TRIGGER trg_catalog_product_entity_int_after_update AFTER UPDATE ON catalog_product_entity_int FOR EACH ROW |
|
BEGIN |
|
SET @entity_id = (SELECT `entity_id` FROM `catalog_product_entity` WHERE `row_id` = NEW.`row_id`); |
|
IF (NOT(NEW.`value_id` <=> OLD.`value_id`) OR NOT(NEW.`attribute_id` <=> OLD.`attribute_id`) OR NOT(NEW.`store_id` <=> OLD.`store_id`) OR NOT(NEW.`value` <=> OLD.`value`) OR NOT(NEW.`row_id` <=> OLD.`row_id`)) THEN INSERT IGNORE INTO `algolia_products_cl` (`entity_id`) values(@entity_id); END IF; |
|
IF (NOT(NEW.`value_id` <=> OLD.`value_id`) OR NOT(NEW.`attribute_id` <=> OLD.`attribute_id`) OR NOT(NEW.`store_id` <=> OLD.`store_id`) OR NOT(NEW.`value` <=> OLD.`value`) OR NOT(NEW.`row_id` <=> OLD.`row_id`)) THEN INSERT IGNORE INTO `catalog_product_category_cl` (`entity_id`) values(@entity_id); END IF; |
|
IF (NOT(NEW.`value_id` <=> OLD.`value_id`) OR NOT(NEW.`attribute_id` <=> OLD.`attribute_id`) OR NOT(NEW.`store_id` <=> OLD.`store_id`) OR NOT(NEW.`value` <=> OLD.`value`) OR NOT(NEW.`row_id` <=> OLD.`row_id`)) THEN INSERT IGNORE INTO `catalog_product_attribute_cl` (`entity_id`) values(@entity_id); END IF; |
|
IF (NOT(NEW.`value_id` <=> OLD.`value_id`) OR NOT(NEW.`attribute_id` <=> OLD.`attribute_id`) OR NOT(NEW.`store_id` <=> OLD.`store_id`) OR NOT(NEW.`value` <=> OLD.`value`) OR NOT(NEW.`row_id` <=> OLD.`row_id`)) THEN INSERT IGNORE INTO `catalogrule_product_cl` (`entity_id`) values(@entity_id); END IF; |
|
IF (NOT(NEW.`value_id` <=> OLD.`value_id`) OR NOT(NEW.`attribute_id` <=> OLD.`attribute_id`) OR NOT(NEW.`store_id` <=> OLD.`store_id`) OR NOT(NEW.`value` <=> OLD.`value`) OR NOT(NEW.`row_id` <=> OLD.`row_id`)) THEN INSERT IGNORE INTO `cataloginventory_stock_cl` (`entity_id`) values(@entity_id); END IF; |
|
IF (NOT(NEW.`value_id` <=> OLD.`value_id`) OR NOT(NEW.`attribute_id` <=> OLD.`attribute_id`) OR NOT(NEW.`store_id` <=> OLD.`store_id`) OR NOT(NEW.`value` <=> OLD.`value`) OR NOT(NEW.`row_id` <=> OLD.`row_id`)) THEN INSERT IGNORE INTO `catalog_product_price_cl` (`entity_id`) values(@entity_id); END IF; |
|
IF (NOT(NEW.`value_id` <=> OLD.`value_id`) OR NOT(NEW.`attribute_id` <=> OLD.`attribute_id`) OR NOT(NEW.`store_id` <=> OLD.`store_id`) OR NOT(NEW.`value` <=> OLD.`value`) OR NOT(NEW.`row_id` <=> OLD.`row_id`)) THEN INSERT IGNORE INTO `catalogsearch_fulltext_cl` (`entity_id`) values(@entity_id); END IF; |
|
END */;; |
|
DELIMITER ; |
|
/*!50003 SET sql_mode = @saved_sql_mode */ ; |
|
/*!50003 SET character_set_client = @saved_cs_client */ ; |
|
/*!50003 SET character_set_results = @saved_cs_results */ ; |
|
/*!50003 SET collation_connection = @saved_col_connection */ ; |
|
/*!50003 SET @saved_cs_client = @@character_set_client */ ; |
|
/*!50003 SET @saved_cs_results = @@character_set_results */ ; |
|
/*!50003 SET @saved_col_connection = @@collation_connection */ ; |
|
/*!50003 SET character_set_client = utf8mb3 */ ; |
|
/*!50003 SET character_set_results = utf8mb3 */ ; |
|
/*!50003 SET collation_connection = utf8mb3_general_ci */ ; |
|
/*!50003 SET @saved_sql_mode = @@sql_mode */ ; |
|
/*!50003 SET sql_mode = '' */ ; |
|
DELIMITER ;; |
|
/*!50003 CREATE*/ /*!50017 DEFINER=CURRENT_USER*/ /*!50003 TRIGGER trg_catalog_product_entity_int_after_delete AFTER DELETE ON catalog_product_entity_int FOR EACH ROW |
|
BEGIN |
|
SET @entity_id = (SELECT `entity_id` FROM `catalog_product_entity` WHERE `row_id` = OLD.`row_id`); |
|
INSERT IGNORE INTO `algolia_products_cl` (`entity_id`) values(@entity_id); |
|
INSERT IGNORE INTO `catalog_product_category_cl` (`entity_id`) values(@entity_id); |
|
INSERT IGNORE INTO `catalog_product_attribute_cl` (`entity_id`) values(@entity_id); |
|
INSERT IGNORE INTO `catalogrule_product_cl` (`entity_id`) values(@entity_id); |
|
INSERT IGNORE INTO `cataloginventory_stock_cl` (`entity_id`) values(@entity_id); |
|
INSERT IGNORE INTO `catalog_product_price_cl` (`entity_id`) values(@entity_id); |
|
INSERT IGNORE INTO `catalogsearch_fulltext_cl` (`entity_id`) values(@entity_id); |
|
END */;; |
|
DELIMITER ; |
|
/*!50003 SET sql_mode = @saved_sql_mode */ ; |
|
/*!50003 SET character_set_client = @saved_cs_client */ ; |
|
/*!50003 SET character_set_results = @saved_cs_results */ ; |
|
/*!50003 SET collation_connection = @saved_col_connection */ ; |
|
|
|
-- |
|
-- Table structure for table `catalog_product_entity_media_gallery` |
|
-- |
|
|
|
DROP TABLE IF EXISTS `catalog_product_entity_media_gallery`; |
|
/*!40101 SET @saved_cs_client = @@character_set_client */; |
|
/*!40101 SET character_set_client = utf8 */; |
|
CREATE TABLE `catalog_product_entity_media_gallery` ( |
|
`value_id` int(10) unsigned NOT NULL AUTO_INCREMENT COMMENT 'Value ID', |
|
`attribute_id` smallint(5) unsigned NOT NULL DEFAULT 0 COMMENT 'Attribute ID', |
|
`value` varchar(255) DEFAULT NULL COMMENT 'Value', |
|
`media_type` varchar(32) NOT NULL DEFAULT 'image' COMMENT 'Media entry type', |
|
`disabled` smallint(5) unsigned NOT NULL DEFAULT 0 COMMENT 'Visibility status', |
|
PRIMARY KEY (`value_id`), |
|
KEY `CATALOG_PRODUCT_ENTITY_MEDIA_GALLERY_ATTRIBUTE_ID` (`attribute_id`), |
|
CONSTRAINT `CAT_PRD_ENTT_MDA_GLR_ATTR_ID_EAV_ATTR_ATTR_ID` FOREIGN KEY (`attribute_id`) REFERENCES `eav_attribute` (`attribute_id`) ON DELETE CASCADE |
|
) ENGINE=InnoDB DEFAULT CHARSET=utf8mb3 COLLATE=utf8mb3_general_ci COMMENT='Catalog Product Media Gallery Attribute Backend Table'; |
|
/*!40101 SET character_set_client = @saved_cs_client */; |
|
|
|
-- |
|
-- Table structure for table `catalog_product_entity_media_gallery_value` |
|
-- |
|
|
|
DROP TABLE IF EXISTS `catalog_product_entity_media_gallery_value`; |
|
/*!40101 SET @saved_cs_client = @@character_set_client */; |
|
/*!40101 SET character_set_client = utf8 */; |
|
CREATE TABLE `catalog_product_entity_media_gallery_value` ( |
|
`value_id` int(10) unsigned NOT NULL DEFAULT 0 COMMENT 'Value ID', |
|
`store_id` smallint(5) unsigned NOT NULL DEFAULT 0 COMMENT 'Store ID', |
|
`label` varchar(255) DEFAULT NULL COMMENT 'Label', |
|
`position` int(10) unsigned DEFAULT NULL COMMENT 'Position', |
|
`disabled` smallint(5) unsigned NOT NULL DEFAULT 0 COMMENT 'Is Disabled', |
|
`record_id` int(10) unsigned NOT NULL AUTO_INCREMENT COMMENT 'Record ID', |
|
`row_id` int(10) unsigned NOT NULL COMMENT 'Version Id', |
|
PRIMARY KEY (`record_id`), |
|
KEY `CATALOG_PRODUCT_ENTITY_MEDIA_GALLERY_VALUE_STORE_ID` (`store_id`), |
|
KEY `CATALOG_PRODUCT_ENTITY_MEDIA_GALLERY_VALUE_VALUE_ID` (`value_id`), |
|
KEY `CATALOG_PRODUCT_ENTITY_MEDIA_GALLERY_VALUE_ROW_ID` (`row_id`), |
|
KEY `CAT_PRD_ENTT_MDA_GLR_VAL_ROW_ID_VAL_ID_STORE_ID` (`row_id`,`value_id`,`store_id`), |
|
CONSTRAINT `CAT_PRD_ENTT_MDA_GLR_VAL_ROW_ID_CAT_PRD_ENTT_ROW_ID` FOREIGN KEY (`row_id`) REFERENCES `catalog_product_entity` (`row_id`) ON DELETE CASCADE, |
|
CONSTRAINT `CAT_PRD_ENTT_MDA_GLR_VAL_STORE_ID_STORE_STORE_ID` FOREIGN KEY (`store_id`) REFERENCES `store` (`store_id`) ON DELETE CASCADE, |
|
CONSTRAINT `CAT_PRD_ENTT_MDA_GLR_VAL_VAL_ID_CAT_PRD_ENTT_MDA_GLR_VAL_ID` FOREIGN KEY (`value_id`) REFERENCES `catalog_product_entity_media_gallery` (`value_id`) ON DELETE CASCADE |
|
) ENGINE=InnoDB DEFAULT CHARSET=utf8mb3 COLLATE=utf8mb3_general_ci COMMENT='Catalog Product Media Gallery Attribute Value Table'; |
|
/*!40101 SET character_set_client = @saved_cs_client */; |
|
/*!50003 SET @saved_cs_client = @@character_set_client */ ; |
|
/*!50003 SET @saved_cs_results = @@character_set_results */ ; |
|
/*!50003 SET @saved_col_connection = @@collation_connection */ ; |
|
/*!50003 SET character_set_client = utf8mb3 */ ; |
|
/*!50003 SET character_set_results = utf8mb3 */ ; |
|
/*!50003 SET collation_connection = utf8mb3_general_ci */ ; |
|
/*!50003 SET @saved_sql_mode = @@sql_mode */ ; |
|
/*!50003 SET sql_mode = '' */ ; |
|
DELIMITER ;; |
|
/*!50003 CREATE*/ /*!50017 DEFINER=CURRENT_USER*/ /*!50003 TRIGGER trg_catalog_product_entity_media_gallery_value_after_insert AFTER INSERT ON catalog_product_entity_media_gallery_value FOR EACH ROW |
|
BEGIN |
|
SET @entity_id = (SELECT `entity_id` FROM `catalog_product_entity` WHERE `row_id` = NEW.`row_id`); |
|
INSERT IGNORE INTO `algolia_products_cl` (`entity_id`) values(@entity_id); |
|
END */;; |
|
DELIMITER ; |
|
/*!50003 SET sql_mode = @saved_sql_mode */ ; |
|
/*!50003 SET character_set_client = @saved_cs_client */ ; |
|
/*!50003 SET character_set_results = @saved_cs_results */ ; |
|
/*!50003 SET collation_connection = @saved_col_connection */ ; |
|
/*!50003 SET @saved_cs_client = @@character_set_client */ ; |
|
/*!50003 SET @saved_cs_results = @@character_set_results */ ; |
|
/*!50003 SET @saved_col_connection = @@collation_connection */ ; |
|
/*!50003 SET character_set_client = utf8mb3 */ ; |
|
/*!50003 SET character_set_results = utf8mb3 */ ; |
|
/*!50003 SET collation_connection = utf8mb3_general_ci */ ; |
|
/*!50003 SET @saved_sql_mode = @@sql_mode */ ; |
|
/*!50003 SET sql_mode = '' */ ; |
|
DELIMITER ;; |
|
/*!50003 CREATE*/ /*!50017 DEFINER=CURRENT_USER*/ /*!50003 TRIGGER trg_catalog_product_entity_media_gallery_value_after_update AFTER UPDATE ON catalog_product_entity_media_gallery_value FOR EACH ROW |
|
BEGIN |
|
SET @entity_id = (SELECT `entity_id` FROM `catalog_product_entity` WHERE `row_id` = NEW.`row_id`); |
|
IF (NOT(NEW.`value_id` <=> OLD.`value_id`) OR NOT(NEW.`store_id` <=> OLD.`store_id`) OR NOT(NEW.`label` <=> OLD.`label`) OR NOT(NEW.`position` <=> OLD.`position`) OR NOT(NEW.`disabled` <=> OLD.`disabled`) OR NOT(NEW.`record_id` <=> OLD.`record_id`) OR NOT(NEW.`row_id` <=> OLD.`row_id`)) THEN INSERT IGNORE INTO `algolia_products_cl` (`entity_id`) values(@entity_id); END IF; |
|
END */;; |
|
DELIMITER ; |
|
/*!50003 SET sql_mode = @saved_sql_mode */ ; |
|
/*!50003 SET character_set_client = @saved_cs_client */ ; |
|
/*!50003 SET character_set_results = @saved_cs_results */ ; |
|
/*!50003 SET collation_connection = @saved_col_connection */ ; |
|
/*!50003 SET @saved_cs_client = @@character_set_client */ ; |
|
/*!50003 SET @saved_cs_results = @@character_set_results */ ; |
|
/*!50003 SET @saved_col_connection = @@collation_connection */ ; |
|
/*!50003 SET character_set_client = utf8mb3 */ ; |
|
/*!50003 SET character_set_results = utf8mb3 */ ; |
|
/*!50003 SET collation_connection = utf8mb3_general_ci */ ; |
|
/*!50003 SET @saved_sql_mode = @@sql_mode */ ; |
|
/*!50003 SET sql_mode = '' */ ; |
|
DELIMITER ;; |
|
/*!50003 CREATE*/ /*!50017 DEFINER=CURRENT_USER*/ /*!50003 TRIGGER trg_catalog_product_entity_media_gallery_value_after_delete AFTER DELETE ON catalog_product_entity_media_gallery_value FOR EACH ROW |
|
BEGIN |
|
SET @entity_id = (SELECT `entity_id` FROM `catalog_product_entity` WHERE `row_id` = OLD.`row_id`); |
|
INSERT IGNORE INTO `algolia_products_cl` (`entity_id`) values(@entity_id); |
|
END */;; |
|
DELIMITER ; |
|
/*!50003 SET sql_mode = @saved_sql_mode */ ; |
|
/*!50003 SET character_set_client = @saved_cs_client */ ; |
|
/*!50003 SET character_set_results = @saved_cs_results */ ; |
|
/*!50003 SET collation_connection = @saved_col_connection */ ; |
|
|
|
-- |
|
-- Table structure for table `catalog_product_entity_media_gallery_value_inriver` |
|
-- |
|
|
|
DROP TABLE IF EXISTS `catalog_product_entity_media_gallery_value_inriver`; |
|
/*!40101 SET @saved_cs_client = @@character_set_client */; |
|
/*!40101 SET character_set_client = utf8 */; |
|
CREATE TABLE `catalog_product_entity_media_gallery_value_inriver` ( |
|
`value_id` int(10) unsigned NOT NULL COMMENT 'Media Entity ID', |
|
`image_id` varchar(255) DEFAULT NULL COMMENT 'inRiver image Id', |
|
UNIQUE KEY `CAT_PRD_ENTT_MDA_GLR_VAL_INRIVER_VAL_ID_IMAGE_ID` (`value_id`,`image_id`), |
|
CONSTRAINT `FK_F3D3AC63793CC40C0AF6C908C44FD51F` FOREIGN KEY (`value_id`) REFERENCES `catalog_product_entity_media_gallery` (`value_id`) ON DELETE CASCADE |
|
) ENGINE=InnoDB DEFAULT CHARSET=utf8mb3 COLLATE=utf8mb3_general_ci COMMENT='InRiver Gallery Additional Attributes'; |
|
/*!40101 SET character_set_client = @saved_cs_client */; |
|
|
|
-- |
|
-- Table structure for table `catalog_product_entity_media_gallery_value_to_entity` |
|
-- |
|
|
|
DROP TABLE IF EXISTS `catalog_product_entity_media_gallery_value_to_entity`; |
|
/*!40101 SET @saved_cs_client = @@character_set_client */; |
|
/*!40101 SET character_set_client = utf8 */; |
|
CREATE TABLE `catalog_product_entity_media_gallery_value_to_entity` ( |
|
`value_id` int(10) unsigned NOT NULL COMMENT 'Value media Entry ID', |
|
`row_id` int(10) unsigned NOT NULL COMMENT 'Version Id', |
|
PRIMARY KEY (`value_id`,`row_id`), |
|
KEY `CAT_PRD_ENTT_MDA_GLR_VAL_TO_ENTT_ROW_ID_CAT_PRD_ENTT_ROW_ID` (`row_id`), |
|
CONSTRAINT `CAT_PRD_ENTT_MDA_GLR_VAL_TO_ENTT_ROW_ID_CAT_PRD_ENTT_ROW_ID` FOREIGN KEY (`row_id`) REFERENCES `catalog_product_entity` (`row_id`) ON DELETE CASCADE, |
|
CONSTRAINT `FK_A6C6C8FAA386736921D3A7C4B50B1185` FOREIGN KEY (`value_id`) REFERENCES `catalog_product_entity_media_gallery` (`value_id`) ON DELETE CASCADE |
|
) ENGINE=InnoDB DEFAULT CHARSET=utf8mb3 COLLATE=utf8mb3_general_ci COMMENT='Link Media value to Product entity table'; |
|
/*!40101 SET character_set_client = @saved_cs_client */; |
|
|
|
-- |
|
-- Table structure for table `catalog_product_entity_media_gallery_value_video` |
|
-- |
|
|
|
DROP TABLE IF EXISTS `catalog_product_entity_media_gallery_value_video`; |
|
/*!40101 SET @saved_cs_client = @@character_set_client */; |
|
/*!40101 SET character_set_client = utf8 */; |
|
CREATE TABLE `catalog_product_entity_media_gallery_value_video` ( |
|
`value_id` int(10) unsigned NOT NULL COMMENT 'Media Entity ID', |
|
`store_id` smallint(5) unsigned NOT NULL DEFAULT 0 COMMENT 'Store ID', |
|
`provider` varchar(32) DEFAULT NULL COMMENT 'Video provider ID', |
|
`url` text DEFAULT NULL COMMENT 'Video URL', |
|
`title` varchar(255) DEFAULT NULL COMMENT 'Title', |
|
`description` text DEFAULT NULL COMMENT 'Page Meta Description', |
|
`metadata` text DEFAULT NULL COMMENT 'Video meta data', |
|
PRIMARY KEY (`value_id`,`store_id`), |
|
KEY `CAT_PRD_ENTT_MDA_GLR_VAL_VIDEO_STORE_ID_STORE_STORE_ID` (`store_id`), |
|
CONSTRAINT `CAT_PRD_ENTT_MDA_GLR_VAL_VIDEO_STORE_ID_STORE_STORE_ID` FOREIGN KEY (`store_id`) REFERENCES `store` (`store_id`) ON DELETE CASCADE, |
|
CONSTRAINT `FK_6FDF205946906B0E653E60AA769899F8` FOREIGN KEY (`value_id`) REFERENCES `catalog_product_entity_media_gallery` (`value_id`) ON DELETE CASCADE |
|
) ENGINE=InnoDB DEFAULT CHARSET=utf8mb3 COLLATE=utf8mb3_general_ci COMMENT='Catalog Product Video Table'; |
|
/*!40101 SET character_set_client = @saved_cs_client */; |
|
|
|
-- |
|
-- Table structure for table `catalog_product_entity_text` |
|
-- |
|
|
|
DROP TABLE IF EXISTS `catalog_product_entity_text`; |
|
/*!40101 SET @saved_cs_client = @@character_set_client */; |
|
/*!40101 SET character_set_client = utf8 */; |
|
CREATE TABLE `catalog_product_entity_text` ( |
|
`value_id` int(11) NOT NULL AUTO_INCREMENT COMMENT 'Value ID', |
|
`attribute_id` smallint(5) unsigned NOT NULL DEFAULT 0 COMMENT 'Attribute ID', |
|
`store_id` smallint(5) unsigned NOT NULL DEFAULT 0 COMMENT 'Store ID', |
|
`value` mediumtext DEFAULT NULL COMMENT 'Value', |
|
`row_id` int(10) unsigned NOT NULL COMMENT 'Version Id', |
|
PRIMARY KEY (`value_id`), |
|
UNIQUE KEY `CATALOG_PRODUCT_ENTITY_TEXT_ROW_ID_ATTRIBUTE_ID_STORE_ID` (`row_id`,`attribute_id`,`store_id`), |
|
KEY `CATALOG_PRODUCT_ENTITY_TEXT_ATTRIBUTE_ID` (`attribute_id`), |
|
KEY `CATALOG_PRODUCT_ENTITY_TEXT_STORE_ID` (`store_id`), |
|
CONSTRAINT `CATALOG_PRODUCT_ENTITY_TEXT_ROW_ID_CATALOG_PRODUCT_ENTITY_ROW_ID` FOREIGN KEY (`row_id`) REFERENCES `catalog_product_entity` (`row_id`) ON DELETE CASCADE, |
|
CONSTRAINT `CATALOG_PRODUCT_ENTITY_TEXT_STORE_ID_STORE_STORE_ID` FOREIGN KEY (`store_id`) REFERENCES `store` (`store_id`) ON DELETE CASCADE, |
|
CONSTRAINT `CAT_PRD_ENTT_TEXT_ATTR_ID_EAV_ATTR_ATTR_ID` FOREIGN KEY (`attribute_id`) REFERENCES `eav_attribute` (`attribute_id`) ON DELETE CASCADE |
|
) ENGINE=InnoDB DEFAULT CHARSET=utf8mb3 COLLATE=utf8mb3_general_ci COMMENT='Catalog Product Text Attribute Backend Table'; |
|
/*!40101 SET character_set_client = @saved_cs_client */; |
|
/*!50003 SET @saved_cs_client = @@character_set_client */ ; |
|
/*!50003 SET @saved_cs_results = @@character_set_results */ ; |
|
/*!50003 SET @saved_col_connection = @@collation_connection */ ; |
|
/*!50003 SET character_set_client = utf8mb3 */ ; |
|
/*!50003 SET character_set_results = utf8mb3 */ ; |
|
/*!50003 SET collation_connection = utf8mb3_general_ci */ ; |
|
/*!50003 SET @saved_sql_mode = @@sql_mode */ ; |
|
/*!50003 SET sql_mode = '' */ ; |
|
DELIMITER ;; |
|
/*!50003 CREATE*/ /*!50017 DEFINER=CURRENT_USER*/ /*!50003 TRIGGER trg_catalog_product_entity_text_after_insert AFTER INSERT ON catalog_product_entity_text FOR EACH ROW |
|
BEGIN |
|
SET @entity_id = (SELECT `entity_id` FROM `catalog_product_entity` WHERE `row_id` = NEW.`row_id`); |
|
INSERT IGNORE INTO `algolia_products_cl` (`entity_id`) values(@entity_id); |
|
INSERT IGNORE INTO `catalogrule_product_cl` (`entity_id`) values(@entity_id); |
|
INSERT IGNORE INTO `catalogsearch_fulltext_cl` (`entity_id`) values(@entity_id); |
|
END */;; |
|
DELIMITER ; |
|
/*!50003 SET sql_mode = @saved_sql_mode */ ; |
|
/*!50003 SET character_set_client = @saved_cs_client */ ; |
|
/*!50003 SET character_set_results = @saved_cs_results */ ; |
|
/*!50003 SET collation_connection = @saved_col_connection */ ; |
|
/*!50003 SET @saved_cs_client = @@character_set_client */ ; |
|
/*!50003 SET @saved_cs_results = @@character_set_results */ ; |
|
/*!50003 SET @saved_col_connection = @@collation_connection */ ; |
|
/*!50003 SET character_set_client = utf8mb3 */ ; |
|
/*!50003 SET character_set_results = utf8mb3 */ ; |
|
/*!50003 SET collation_connection = utf8mb3_general_ci */ ; |
|
/*!50003 SET @saved_sql_mode = @@sql_mode */ ; |
|
/*!50003 SET sql_mode = '' */ ; |
|
DELIMITER ;; |
|
/*!50003 CREATE*/ /*!50017 DEFINER=CURRENT_USER*/ /*!50003 TRIGGER trg_catalog_product_entity_text_after_update AFTER UPDATE ON catalog_product_entity_text FOR EACH ROW |
|
BEGIN |
|
SET @entity_id = (SELECT `entity_id` FROM `catalog_product_entity` WHERE `row_id` = NEW.`row_id`); |
|
IF (NOT(NEW.`value_id` <=> OLD.`value_id`) OR NOT(NEW.`attribute_id` <=> OLD.`attribute_id`) OR NOT(NEW.`store_id` <=> OLD.`store_id`) OR NOT(NEW.`value` <=> OLD.`value`) OR NOT(NEW.`row_id` <=> OLD.`row_id`)) THEN INSERT IGNORE INTO `algolia_products_cl` (`entity_id`) values(@entity_id); END IF; |
|
IF (NOT(NEW.`value_id` <=> OLD.`value_id`) OR NOT(NEW.`attribute_id` <=> OLD.`attribute_id`) OR NOT(NEW.`store_id` <=> OLD.`store_id`) OR NOT(NEW.`value` <=> OLD.`value`) OR NOT(NEW.`row_id` <=> OLD.`row_id`)) THEN INSERT IGNORE INTO `catalogrule_product_cl` (`entity_id`) values(@entity_id); END IF; |
|
IF (NOT(NEW.`value_id` <=> OLD.`value_id`) OR NOT(NEW.`attribute_id` <=> OLD.`attribute_id`) OR NOT(NEW.`store_id` <=> OLD.`store_id`) OR NOT(NEW.`value` <=> OLD.`value`) OR NOT(NEW.`row_id` <=> OLD.`row_id`)) THEN INSERT IGNORE INTO `catalogsearch_fulltext_cl` (`entity_id`) values(@entity_id); END IF; |
|
END */;; |
|
DELIMITER ; |
|
/*!50003 SET sql_mode = @saved_sql_mode */ ; |
|
/*!50003 SET character_set_client = @saved_cs_client */ ; |
|
/*!50003 SET character_set_results = @saved_cs_results */ ; |
|
/*!50003 SET collation_connection = @saved_col_connection */ ; |
|
/*!50003 SET @saved_cs_client = @@character_set_client */ ; |
|
/*!50003 SET @saved_cs_results = @@character_set_results */ ; |
|
/*!50003 SET @saved_col_connection = @@collation_connection */ ; |
|
/*!50003 SET character_set_client = utf8mb3 */ ; |
|
/*!50003 SET character_set_results = utf8mb3 */ ; |
|
/*!50003 SET collation_connection = utf8mb3_general_ci */ ; |
|
/*!50003 SET @saved_sql_mode = @@sql_mode */ ; |
|
/*!50003 SET sql_mode = '' */ ; |
|
DELIMITER ;; |
|
/*!50003 CREATE*/ /*!50017 DEFINER=CURRENT_USER*/ /*!50003 TRIGGER trg_catalog_product_entity_text_after_delete AFTER DELETE ON catalog_product_entity_text FOR EACH ROW |
|
BEGIN |
|
SET @entity_id = (SELECT `entity_id` FROM `catalog_product_entity` WHERE `row_id` = OLD.`row_id`); |
|
INSERT IGNORE INTO `algolia_products_cl` (`entity_id`) values(@entity_id); |
|
INSERT IGNORE INTO `catalogrule_product_cl` (`entity_id`) values(@entity_id); |
|
INSERT IGNORE INTO `catalogsearch_fulltext_cl` (`entity_id`) values(@entity_id); |
|
END */;; |
|
DELIMITER ; |
|
/*!50003 SET sql_mode = @saved_sql_mode */ ; |
|
/*!50003 SET character_set_client = @saved_cs_client */ ; |
|
/*!50003 SET character_set_results = @saved_cs_results */ ; |
|
/*!50003 SET collation_connection = @saved_col_connection */ ; |
|
|
|
-- |
|
-- Table structure for table `catalog_product_entity_tier_price` |
|
-- |
|
|
|
DROP TABLE IF EXISTS `catalog_product_entity_tier_price`; |
|
/*!40101 SET @saved_cs_client = @@character_set_client */; |
|
/*!40101 SET character_set_client = utf8 */; |
|
CREATE TABLE `catalog_product_entity_tier_price` ( |
|
`value_id` int(11) NOT NULL AUTO_INCREMENT COMMENT 'Value ID', |
|
`all_groups` smallint(5) unsigned NOT NULL DEFAULT 1 COMMENT 'Is Applicable To All Customer Groups', |
|
`customer_group_id` int(10) unsigned NOT NULL DEFAULT 0 COMMENT 'Customer Group ID', |
|
`qty` decimal(12,4) NOT NULL DEFAULT 1.0000 COMMENT 'QTY', |
|
`value` decimal(20,6) NOT NULL DEFAULT 0.000000 COMMENT 'Value', |
|
`website_id` smallint(5) unsigned NOT NULL COMMENT 'Website ID', |
|
`percentage_value` decimal(5,2) DEFAULT NULL COMMENT 'Percentage value', |
|
`row_id` int(10) unsigned NOT NULL COMMENT 'Version Id', |
|
PRIMARY KEY (`value_id`), |
|
UNIQUE KEY `UNQ_EBC6A54F44DFA66FA9024CAD97FED6C7` (`row_id`,`all_groups`,`customer_group_id`,`qty`,`website_id`), |
|
KEY `CATALOG_PRODUCT_ENTITY_TIER_PRICE_CUSTOMER_GROUP_ID` (`customer_group_id`), |
|
KEY `CATALOG_PRODUCT_ENTITY_TIER_PRICE_WEBSITE_ID` (`website_id`), |
|
CONSTRAINT `CAT_PRD_ENTT_TIER_PRICE_CSTR_GROUP_ID_CSTR_GROUP_CSTR_GROUP_ID` FOREIGN KEY (`customer_group_id`) REFERENCES `customer_group` (`customer_group_id`) ON DELETE CASCADE, |
|
CONSTRAINT `CAT_PRD_ENTT_TIER_PRICE_ROW_ID_CAT_PRD_ENTT_ROW_ID` FOREIGN KEY (`row_id`) REFERENCES `catalog_product_entity` (`row_id`) ON DELETE CASCADE, |
|
CONSTRAINT `CAT_PRD_ENTT_TIER_PRICE_WS_ID_STORE_WS_WS_ID` FOREIGN KEY (`website_id`) REFERENCES `store_website` (`website_id`) ON DELETE CASCADE |
|
) ENGINE=InnoDB DEFAULT CHARSET=utf8mb3 COLLATE=utf8mb3_general_ci COMMENT='Catalog Product Tier Price Attribute Backend Table'; |
|
/*!40101 SET character_set_client = @saved_cs_client */; |
|
/*!50003 SET @saved_cs_client = @@character_set_client */ ; |
|
/*!50003 SET @saved_cs_results = @@character_set_results */ ; |
|
/*!50003 SET @saved_col_connection = @@collation_connection */ ; |
|
/*!50003 SET character_set_client = utf8mb3 */ ; |
|
/*!50003 SET character_set_results = utf8mb3 */ ; |
|
/*!50003 SET collation_connection = utf8mb3_general_ci */ ; |
|
/*!50003 SET @saved_sql_mode = @@sql_mode */ ; |
|
/*!50003 SET sql_mode = '' */ ; |
|
DELIMITER ;; |
|
/*!50003 CREATE*/ /*!50017 DEFINER=CURRENT_USER*/ /*!50003 TRIGGER trg_catalog_product_entity_tier_price_after_insert AFTER INSERT ON catalog_product_entity_tier_price FOR EACH ROW |
|
BEGIN |
|
SET @entity_id = (SELECT `entity_id` FROM `catalog_product_entity` WHERE `row_id` = NEW.`row_id`); |
|
INSERT IGNORE INTO `algolia_products_cl` (`entity_id`) values(@entity_id); |
|
INSERT IGNORE INTO `catalogrule_product_cl` (`entity_id`) values(@entity_id); |
|
INSERT IGNORE INTO `catalog_product_price_cl` (`entity_id`) values(@entity_id); |
|
END */;; |
|
DELIMITER ; |
|
/*!50003 SET sql_mode = @saved_sql_mode */ ; |
|
/*!50003 SET character_set_client = @saved_cs_client */ ; |
|
/*!50003 SET character_set_results = @saved_cs_results */ ; |
|
/*!50003 SET collation_connection = @saved_col_connection */ ; |
|
/*!50003 SET @saved_cs_client = @@character_set_client */ ; |
|
/*!50003 SET @saved_cs_results = @@character_set_results */ ; |
|
/*!50003 SET @saved_col_connection = @@collation_connection */ ; |
|
/*!50003 SET character_set_client = utf8mb3 */ ; |
|
/*!50003 SET character_set_results = utf8mb3 */ ; |
|
/*!50003 SET collation_connection = utf8mb3_general_ci */ ; |
|
/*!50003 SET @saved_sql_mode = @@sql_mode */ ; |
|
/*!50003 SET sql_mode = '' */ ; |
|
DELIMITER ;; |
|
/*!50003 CREATE*/ /*!50017 DEFINER=CURRENT_USER*/ /*!50003 TRIGGER trg_catalog_product_entity_tier_price_after_update AFTER UPDATE ON catalog_product_entity_tier_price FOR EACH ROW |
|
BEGIN |
|
SET @entity_id = (SELECT `entity_id` FROM `catalog_product_entity` WHERE `row_id` = NEW.`row_id`); |
|
IF (NOT(NEW.`value_id` <=> OLD.`value_id`) OR NOT(NEW.`all_groups` <=> OLD.`all_groups`) OR NOT(NEW.`customer_group_id` <=> OLD.`customer_group_id`) OR NOT(NEW.`qty` <=> OLD.`qty`) OR NOT(NEW.`value` <=> OLD.`value`) OR NOT(NEW.`website_id` <=> OLD.`website_id`) OR NOT(NEW.`percentage_value` <=> OLD.`percentage_value`) OR NOT(NEW.`row_id` <=> OLD.`row_id`)) THEN INSERT IGNORE INTO `algolia_products_cl` (`entity_id`) values(@entity_id); END IF; |
|
IF (NOT(NEW.`value_id` <=> OLD.`value_id`) OR NOT(NEW.`all_groups` <=> OLD.`all_groups`) OR NOT(NEW.`customer_group_id` <=> OLD.`customer_group_id`) OR NOT(NEW.`qty` <=> OLD.`qty`) OR NOT(NEW.`value` <=> OLD.`value`) OR NOT(NEW.`website_id` <=> OLD.`website_id`) OR NOT(NEW.`percentage_value` <=> OLD.`percentage_value`) OR NOT(NEW.`row_id` <=> OLD.`row_id`)) THEN INSERT IGNORE INTO `catalogrule_product_cl` (`entity_id`) values(@entity_id); END IF; |
|
IF (NOT(NEW.`value_id` <=> OLD.`value_id`) OR NOT(NEW.`all_groups` <=> OLD.`all_groups`) OR NOT(NEW.`customer_group_id` <=> OLD.`customer_group_id`) OR NOT(NEW.`qty` <=> OLD.`qty`) OR NOT(NEW.`value` <=> OLD.`value`) OR NOT(NEW.`website_id` <=> OLD.`website_id`) OR NOT(NEW.`percentage_value` <=> OLD.`percentage_value`) OR NOT(NEW.`row_id` <=> OLD.`row_id`)) THEN INSERT IGNORE INTO `catalog_product_price_cl` (`entity_id`) values(@entity_id); END IF; |
|
END */;; |
|
DELIMITER ; |
|
/*!50003 SET sql_mode = @saved_sql_mode */ ; |
|
/*!50003 SET character_set_client = @saved_cs_client */ ; |
|
/*!50003 SET character_set_results = @saved_cs_results */ ; |
|
/*!50003 SET collation_connection = @saved_col_connection */ ; |
|
/*!50003 SET @saved_cs_client = @@character_set_client */ ; |
|
/*!50003 SET @saved_cs_results = @@character_set_results */ ; |
|
/*!50003 SET @saved_col_connection = @@collation_connection */ ; |
|
/*!50003 SET character_set_client = utf8mb3 */ ; |
|
/*!50003 SET character_set_results = utf8mb3 */ ; |
|
/*!50003 SET collation_connection = utf8mb3_general_ci */ ; |
|
/*!50003 SET @saved_sql_mode = @@sql_mode */ ; |
|
/*!50003 SET sql_mode = '' */ ; |
|
DELIMITER ;; |
|
/*!50003 CREATE*/ /*!50017 DEFINER=CURRENT_USER*/ /*!50003 TRIGGER trg_catalog_product_entity_tier_price_after_delete AFTER DELETE ON catalog_product_entity_tier_price FOR EACH ROW |
|
BEGIN |
|
SET @entity_id = (SELECT `entity_id` FROM `catalog_product_entity` WHERE `row_id` = OLD.`row_id`); |
|
INSERT IGNORE INTO `algolia_products_cl` (`entity_id`) values(@entity_id); |
|
INSERT IGNORE INTO `catalogrule_product_cl` (`entity_id`) values(@entity_id); |
|
INSERT IGNORE INTO `catalog_product_price_cl` (`entity_id`) values(@entity_id); |
|
END */;; |
|
DELIMITER ; |
|
/*!50003 SET sql_mode = @saved_sql_mode */ ; |
|
/*!50003 SET character_set_client = @saved_cs_client */ ; |
|
/*!50003 SET character_set_results = @saved_cs_results */ ; |
|
/*!50003 SET collation_connection = @saved_col_connection */ ; |
|
|
|
-- |
|
-- Table structure for table `catalog_product_entity_varchar` |
|
-- |
|
|
|
DROP TABLE IF EXISTS `catalog_product_entity_varchar`; |
|
/*!40101 SET @saved_cs_client = @@character_set_client */; |
|
/*!40101 SET character_set_client = utf8 */; |
|
CREATE TABLE `catalog_product_entity_varchar` ( |
|
`value_id` int(11) NOT NULL AUTO_INCREMENT COMMENT 'Value ID', |
|
`attribute_id` smallint(5) unsigned NOT NULL DEFAULT 0 COMMENT 'Attribute ID', |
|
`store_id` smallint(5) unsigned NOT NULL DEFAULT 0 COMMENT 'Store ID', |
|
`value` varchar(255) DEFAULT NULL COMMENT 'Value', |
|
`row_id` int(10) unsigned NOT NULL COMMENT 'Version Id', |
|
PRIMARY KEY (`value_id`), |
|
UNIQUE KEY `CATALOG_PRODUCT_ENTITY_VARCHAR_ROW_ID_ATTRIBUTE_ID_STORE_ID` (`row_id`,`attribute_id`,`store_id`), |
|
KEY `CATALOG_PRODUCT_ENTITY_VARCHAR_ATTRIBUTE_ID` (`attribute_id`), |
|
KEY `CATALOG_PRODUCT_ENTITY_VARCHAR_STORE_ID` (`store_id`), |
|
CONSTRAINT `CATALOG_PRODUCT_ENTITY_VARCHAR_STORE_ID_STORE_STORE_ID` FOREIGN KEY (`store_id`) REFERENCES `store` (`store_id`) ON DELETE CASCADE, |
|
CONSTRAINT `CAT_PRD_ENTT_VCHR_ATTR_ID_EAV_ATTR_ATTR_ID` FOREIGN KEY (`attribute_id`) REFERENCES `eav_attribute` (`attribute_id`) ON DELETE CASCADE, |
|
CONSTRAINT `CAT_PRD_ENTT_VCHR_ROW_ID_CAT_PRD_ENTT_ROW_ID` FOREIGN KEY (`row_id`) REFERENCES `catalog_product_entity` (`row_id`) ON DELETE CASCADE |
|
) ENGINE=InnoDB DEFAULT CHARSET=utf8mb3 COLLATE=utf8mb3_general_ci COMMENT='Catalog Product Varchar Attribute Backend Table'; |
|
/*!40101 SET character_set_client = @saved_cs_client */; |
|
/*!50003 SET @saved_cs_client = @@character_set_client */ ; |
|
/*!50003 SET @saved_cs_results = @@character_set_results */ ; |
|
/*!50003 SET @saved_col_connection = @@collation_connection */ ; |
|
/*!50003 SET character_set_client = utf8mb3 */ ; |
|
/*!50003 SET character_set_results = utf8mb3 */ ; |
|
/*!50003 SET collation_connection = utf8mb3_general_ci */ ; |
|
/*!50003 SET @saved_sql_mode = @@sql_mode */ ; |
|
/*!50003 SET sql_mode = '' */ ; |
|
DELIMITER ;; |
|
/*!50003 CREATE*/ /*!50017 DEFINER=CURRENT_USER*/ /*!50003 TRIGGER trg_catalog_product_entity_varchar_after_insert AFTER INSERT ON catalog_product_entity_varchar FOR EACH ROW |
|
BEGIN |
|
SET @entity_id = (SELECT `entity_id` FROM `catalog_product_entity` WHERE `row_id` = NEW.`row_id`); |
|
INSERT IGNORE INTO `urapidflow_urlkey_index_cl` (`entity_id`) values(@entity_id); |
|
INSERT IGNORE INTO `catalog_product_attribute_cl` (`entity_id`) values(@entity_id); |
|
INSERT IGNORE INTO `catalogrule_product_cl` (`entity_id`) values(@entity_id); |
|
INSERT IGNORE INTO `catalogsearch_fulltext_cl` (`entity_id`) values(@entity_id); |
|
INSERT IGNORE INTO `algolia_products_cl` (`entity_id`) values(@entity_id); |
|
END */;; |
|
DELIMITER ; |
|
/*!50003 SET sql_mode = @saved_sql_mode */ ; |
|
/*!50003 SET character_set_client = @saved_cs_client */ ; |
|
/*!50003 SET character_set_results = @saved_cs_results */ ; |
|
/*!50003 SET collation_connection = @saved_col_connection */ ; |
|
/*!50003 SET @saved_cs_client = @@character_set_client */ ; |
|
/*!50003 SET @saved_cs_results = @@character_set_results */ ; |
|
/*!50003 SET @saved_col_connection = @@collation_connection */ ; |
|
/*!50003 SET character_set_client = utf8mb3 */ ; |
|
/*!50003 SET character_set_results = utf8mb3 */ ; |
|
/*!50003 SET collation_connection = utf8mb3_general_ci */ ; |
|
/*!50003 SET @saved_sql_mode = @@sql_mode */ ; |
|
/*!50003 SET sql_mode = '' */ ; |
|
DELIMITER ;; |
|
/*!50003 CREATE*/ /*!50017 DEFINER=CURRENT_USER*/ /*!50003 TRIGGER trg_catalog_product_entity_varchar_after_update AFTER UPDATE ON catalog_product_entity_varchar FOR EACH ROW |
|
BEGIN |
|
SET @entity_id = (SELECT `entity_id` FROM `catalog_product_entity` WHERE `row_id` = NEW.`row_id`); |
|
IF (NOT(NEW.`value_id` <=> OLD.`value_id`) OR NOT(NEW.`attribute_id` <=> OLD.`attribute_id`) OR NOT(NEW.`store_id` <=> OLD.`store_id`) OR NOT(NEW.`value` <=> OLD.`value`) OR NOT(NEW.`row_id` <=> OLD.`row_id`)) THEN INSERT IGNORE INTO `urapidflow_urlkey_index_cl` (`entity_id`) values(@entity_id); END IF; |
|
IF (NOT(NEW.`value_id` <=> OLD.`value_id`) OR NOT(NEW.`attribute_id` <=> OLD.`attribute_id`) OR NOT(NEW.`store_id` <=> OLD.`store_id`) OR NOT(NEW.`value` <=> OLD.`value`) OR NOT(NEW.`row_id` <=> OLD.`row_id`)) THEN INSERT IGNORE INTO `catalog_product_attribute_cl` (`entity_id`) values(@entity_id); END IF; |
|
IF (NOT(NEW.`value_id` <=> OLD.`value_id`) OR NOT(NEW.`attribute_id` <=> OLD.`attribute_id`) OR NOT(NEW.`store_id` <=> OLD.`store_id`) OR NOT(NEW.`value` <=> OLD.`value`) OR NOT(NEW.`row_id` <=> OLD.`row_id`)) THEN INSERT IGNORE INTO `catalogrule_product_cl` (`entity_id`) values(@entity_id); END IF; |
|
IF (NOT(NEW.`value_id` <=> OLD.`value_id`) OR NOT(NEW.`attribute_id` <=> OLD.`attribute_id`) OR NOT(NEW.`store_id` <=> OLD.`store_id`) OR NOT(NEW.`value` <=> OLD.`value`) OR NOT(NEW.`row_id` <=> OLD.`row_id`)) THEN INSERT IGNORE INTO `catalogsearch_fulltext_cl` (`entity_id`) values(@entity_id); END IF; |
|
IF (NOT(NEW.`value_id` <=> OLD.`value_id`) OR NOT(NEW.`attribute_id` <=> OLD.`attribute_id`) OR NOT(NEW.`store_id` <=> OLD.`store_id`) OR NOT(NEW.`value` <=> OLD.`value`) OR NOT(NEW.`row_id` <=> OLD.`row_id`)) THEN INSERT IGNORE INTO `algolia_products_cl` (`entity_id`) values(@entity_id); END IF; |
|
END */;; |
|
DELIMITER ; |
|
/*!50003 SET sql_mode = @saved_sql_mode */ ; |
|
/*!50003 SET character_set_client = @saved_cs_client */ ; |
|
/*!50003 SET character_set_results = @saved_cs_results */ ; |
|
/*!50003 SET collation_connection = @saved_col_connection */ ; |
|
/*!50003 SET @saved_cs_client = @@character_set_client */ ; |
|
/*!50003 SET @saved_cs_results = @@character_set_results */ ; |
|
/*!50003 SET @saved_col_connection = @@collation_connection */ ; |
|
/*!50003 SET character_set_client = utf8mb3 */ ; |
|
/*!50003 SET character_set_results = utf8mb3 */ ; |
|
/*!50003 SET collation_connection = utf8mb3_general_ci */ ; |
|
/*!50003 SET @saved_sql_mode = @@sql_mode */ ; |
|
/*!50003 SET sql_mode = '' */ ; |
|
DELIMITER ;; |
|
/*!50003 CREATE*/ /*!50017 DEFINER=CURRENT_USER*/ /*!50003 TRIGGER trg_catalog_product_entity_varchar_after_delete AFTER DELETE ON catalog_product_entity_varchar FOR EACH ROW |
|
BEGIN |
|
SET @entity_id = (SELECT `entity_id` FROM `catalog_product_entity` WHERE `row_id` = OLD.`row_id`); |
|
INSERT IGNORE INTO `urapidflow_urlkey_index_cl` (`entity_id`) values(@entity_id); |
|
INSERT IGNORE INTO `catalog_product_attribute_cl` (`entity_id`) values(@entity_id); |
|
INSERT IGNORE INTO `catalogrule_product_cl` (`entity_id`) values(@entity_id); |
|
INSERT IGNORE INTO `catalogsearch_fulltext_cl` (`entity_id`) values(@entity_id); |
|
INSERT IGNORE INTO `algolia_products_cl` (`entity_id`) values(@entity_id); |
|
END */;; |
|
DELIMITER ; |
|
/*!50003 SET sql_mode = @saved_sql_mode */ ; |
|
/*!50003 SET character_set_client = @saved_cs_client */ ; |
|
/*!50003 SET character_set_results = @saved_cs_results */ ; |
|
/*!50003 SET collation_connection = @saved_col_connection */ ; |
|
|
|
-- |
|
-- Table structure for table `catalog_product_index_eav` |
|
-- |
|
|
|
DROP TABLE IF EXISTS `catalog_product_index_eav`; |
|
/*!40101 SET @saved_cs_client = @@character_set_client */; |
|
/*!40101 SET character_set_client = utf8 */; |
|
CREATE TABLE `catalog_product_index_eav` ( |
|
`entity_id` int(10) unsigned NOT NULL COMMENT 'Entity ID', |
|
`attribute_id` smallint(5) unsigned NOT NULL COMMENT 'Attribute ID', |
|
`store_id` smallint(5) unsigned NOT NULL COMMENT 'Store ID', |
|
`value` int(10) unsigned NOT NULL COMMENT 'Value', |
|
`source_id` int(10) unsigned NOT NULL DEFAULT 0 COMMENT 'Original entity ID for attribute value', |
|
PRIMARY KEY (`entity_id`,`attribute_id`,`store_id`,`value`,`source_id`), |
|
KEY `CATALOG_PRODUCT_INDEX_EAV_ATTRIBUTE_ID` (`attribute_id`), |
|
KEY `CATALOG_PRODUCT_INDEX_EAV_STORE_ID` (`store_id`), |
|
KEY `CATALOG_PRODUCT_INDEX_EAV_VALUE` (`value`) |
|
) ENGINE=InnoDB DEFAULT CHARSET=utf8mb3 COLLATE=utf8mb3_general_ci COMMENT='Catalog Product EAV Index Table'; |
|
/*!40101 SET character_set_client = @saved_cs_client */; |
|
|
|
-- |
|
-- Table structure for table `catalog_product_index_eav_decimal` |
|
-- |
|
|
|
DROP TABLE IF EXISTS `catalog_product_index_eav_decimal`; |
|
/*!40101 SET @saved_cs_client = @@character_set_client */; |
|
/*!40101 SET character_set_client = utf8 */; |
|
CREATE TABLE `catalog_product_index_eav_decimal` ( |
|
`entity_id` int(10) unsigned NOT NULL COMMENT 'Entity ID', |
|
`attribute_id` smallint(5) unsigned NOT NULL COMMENT 'Attribute ID', |
|
`store_id` smallint(5) unsigned NOT NULL COMMENT 'Store ID', |
|
`value` decimal(12,4) NOT NULL COMMENT 'Value', |
|
`source_id` int(10) unsigned NOT NULL DEFAULT 0 COMMENT 'Original entity ID for attribute value', |
|
PRIMARY KEY (`entity_id`,`attribute_id`,`store_id`,`value`,`source_id`), |
|
KEY `CATALOG_PRODUCT_INDEX_EAV_DECIMAL_ATTRIBUTE_ID` (`attribute_id`), |
|
KEY `CATALOG_PRODUCT_INDEX_EAV_DECIMAL_STORE_ID` (`store_id`), |
|
KEY `CATALOG_PRODUCT_INDEX_EAV_DECIMAL_VALUE` (`value`) |
|
) ENGINE=InnoDB DEFAULT CHARSET=utf8mb3 COLLATE=utf8mb3_general_ci COMMENT='Catalog Product EAV Decimal Index Table'; |
|
/*!40101 SET character_set_client = @saved_cs_client */; |
|
|
|
-- |
|
-- Table structure for table `catalog_product_index_eav_decimal_idx` |
|
-- |
|
|
|
DROP TABLE IF EXISTS `catalog_product_index_eav_decimal_idx`; |
|
/*!40101 SET @saved_cs_client = @@character_set_client */; |
|
/*!40101 SET character_set_client = utf8 */; |
|
CREATE TABLE `catalog_product_index_eav_decimal_idx` ( |
|
`entity_id` int(10) unsigned NOT NULL COMMENT 'Entity ID', |
|
`attribute_id` smallint(5) unsigned NOT NULL COMMENT 'Attribute ID', |
|
`store_id` smallint(5) unsigned NOT NULL COMMENT 'Store ID', |
|
`value` decimal(12,4) NOT NULL COMMENT 'Value', |
|
`source_id` int(10) unsigned NOT NULL DEFAULT 0 COMMENT 'Original entity ID for attribute value', |
|
PRIMARY KEY (`entity_id`,`attribute_id`,`store_id`,`value`,`source_id`), |
|
KEY `CATALOG_PRODUCT_INDEX_EAV_DECIMAL_IDX_ATTRIBUTE_ID` (`attribute_id`), |
|
KEY `CATALOG_PRODUCT_INDEX_EAV_DECIMAL_IDX_STORE_ID` (`store_id`), |
|
KEY `CATALOG_PRODUCT_INDEX_EAV_DECIMAL_IDX_VALUE` (`value`) |
|
) ENGINE=InnoDB DEFAULT CHARSET=utf8mb3 COLLATE=utf8mb3_general_ci COMMENT='Catalog Product EAV Decimal Indexer Index Table'; |
|
/*!40101 SET character_set_client = @saved_cs_client */; |
|
|
|
-- |
|
-- Table structure for table `catalog_product_index_eav_decimal_replica` |
|
-- |
|
|
|
DROP TABLE IF EXISTS `catalog_product_index_eav_decimal_replica`; |
|
/*!40101 SET @saved_cs_client = @@character_set_client */; |
|
/*!40101 SET character_set_client = utf8 */; |
|
CREATE TABLE `catalog_product_index_eav_decimal_replica` ( |
|
`entity_id` int(10) unsigned NOT NULL COMMENT 'Entity ID', |
|
`attribute_id` smallint(5) unsigned NOT NULL COMMENT 'Attribute ID', |
|
`store_id` smallint(5) unsigned NOT NULL COMMENT 'Store ID', |
|
`value` decimal(12,4) NOT NULL COMMENT 'Value', |
|
`source_id` int(10) unsigned NOT NULL DEFAULT 0 COMMENT 'Original entity ID for attribute value', |
|
PRIMARY KEY (`entity_id`,`attribute_id`,`store_id`,`value`,`source_id`), |
|
KEY `CATALOG_PRODUCT_INDEX_EAV_DECIMAL_ATTRIBUTE_ID` (`attribute_id`), |
|
KEY `CATALOG_PRODUCT_INDEX_EAV_DECIMAL_STORE_ID` (`store_id`), |
|
KEY `CATALOG_PRODUCT_INDEX_EAV_DECIMAL_VALUE` (`value`) |
|
) ENGINE=InnoDB DEFAULT CHARSET=utf8mb3 COLLATE=utf8mb3_general_ci COMMENT='Catalog Product EAV Decimal Index Table'; |
|
/*!40101 SET character_set_client = @saved_cs_client */; |
|
|
|
-- |
|
-- Table structure for table `catalog_product_index_eav_decimal_tmp` |
|
-- |
|
|
|
DROP TABLE IF EXISTS `catalog_product_index_eav_decimal_tmp`; |
|
/*!40101 SET @saved_cs_client = @@character_set_client */; |
|
/*!40101 SET character_set_client = utf8 */; |
|
CREATE TABLE `catalog_product_index_eav_decimal_tmp` ( |
|
`entity_id` int(10) unsigned NOT NULL COMMENT 'Entity ID', |
|
`attribute_id` smallint(5) unsigned NOT NULL COMMENT 'Attribute ID', |
|
`store_id` smallint(5) unsigned NOT NULL COMMENT 'Store ID', |
|
`value` decimal(12,4) NOT NULL COMMENT 'Value', |
|
`source_id` int(10) unsigned NOT NULL DEFAULT 0 COMMENT 'Original entity ID for attribute value', |
|
PRIMARY KEY (`entity_id`,`attribute_id`,`store_id`,`value`,`source_id`), |
|
KEY `CATALOG_PRODUCT_INDEX_EAV_DECIMAL_TMP_ATTRIBUTE_ID` (`attribute_id`), |
|
KEY `CATALOG_PRODUCT_INDEX_EAV_DECIMAL_TMP_STORE_ID` (`store_id`), |
|
KEY `CATALOG_PRODUCT_INDEX_EAV_DECIMAL_TMP_VALUE` (`value`) |
|
) ENGINE=InnoDB DEFAULT CHARSET=utf8mb3 COLLATE=utf8mb3_general_ci COMMENT='Catalog Product EAV Decimal Indexer Temp Table'; |
|
/*!40101 SET character_set_client = @saved_cs_client */; |
|
|
|
-- |
|
-- Table structure for table `catalog_product_index_eav_idx` |
|
-- |
|
|
|
DROP TABLE IF EXISTS `catalog_product_index_eav_idx`; |
|
/*!40101 SET @saved_cs_client = @@character_set_client */; |
|
/*!40101 SET character_set_client = utf8 */; |
|
CREATE TABLE `catalog_product_index_eav_idx` ( |
|
`entity_id` int(10) unsigned NOT NULL COMMENT 'Entity ID', |
|
`attribute_id` smallint(5) unsigned NOT NULL COMMENT 'Attribute ID', |
|
`store_id` smallint(5) unsigned NOT NULL COMMENT 'Store ID', |
|
`value` int(10) unsigned NOT NULL COMMENT 'Value', |
|
`source_id` int(10) unsigned NOT NULL DEFAULT 0 COMMENT 'Original entity ID for attribute value', |
|
PRIMARY KEY (`entity_id`,`attribute_id`,`store_id`,`value`,`source_id`), |
|
KEY `CATALOG_PRODUCT_INDEX_EAV_IDX_ATTRIBUTE_ID` (`attribute_id`), |
|
KEY `CATALOG_PRODUCT_INDEX_EAV_IDX_STORE_ID` (`store_id`), |
|
KEY `CATALOG_PRODUCT_INDEX_EAV_IDX_VALUE` (`value`) |
|
) ENGINE=InnoDB DEFAULT CHARSET=utf8mb3 COLLATE=utf8mb3_general_ci COMMENT='Catalog Product EAV Indexer Index Table'; |
|
/*!40101 SET character_set_client = @saved_cs_client */; |
|
|
|
-- |
|
-- Table structure for table `catalog_product_index_eav_replica` |
|
-- |
|
|
|
DROP TABLE IF EXISTS `catalog_product_index_eav_replica`; |
|
/*!40101 SET @saved_cs_client = @@character_set_client */; |
|
/*!40101 SET character_set_client = utf8 */; |
|
CREATE TABLE `catalog_product_index_eav_replica` ( |
|
`entity_id` int(10) unsigned NOT NULL COMMENT 'Entity ID', |
|
`attribute_id` smallint(5) unsigned NOT NULL COMMENT 'Attribute ID', |
|
`store_id` smallint(5) unsigned NOT NULL COMMENT 'Store ID', |
|
`value` int(10) unsigned NOT NULL COMMENT 'Value', |
|
`source_id` int(10) unsigned NOT NULL DEFAULT 0 COMMENT 'Original entity ID for attribute value', |
|
PRIMARY KEY (`entity_id`,`attribute_id`,`store_id`,`value`,`source_id`), |
|
KEY `CATALOG_PRODUCT_INDEX_EAV_ATTRIBUTE_ID` (`attribute_id`), |
|
KEY `CATALOG_PRODUCT_INDEX_EAV_STORE_ID` (`store_id`), |
|
KEY `CATALOG_PRODUCT_INDEX_EAV_VALUE` (`value`) |
|
) ENGINE=InnoDB DEFAULT CHARSET=utf8mb3 COLLATE=utf8mb3_general_ci COMMENT='Catalog Product EAV Index Table'; |
|
/*!40101 SET character_set_client = @saved_cs_client */; |
|
|
|
-- |
|
-- Table structure for table `catalog_product_index_eav_tmp` |
|
-- |
|
|
|
DROP TABLE IF EXISTS `catalog_product_index_eav_tmp`; |
|
/*!40101 SET @saved_cs_client = @@character_set_client */; |
|
/*!40101 SET character_set_client = utf8 */; |
|
CREATE TABLE `catalog_product_index_eav_tmp` ( |
|
`entity_id` int(10) unsigned NOT NULL COMMENT 'Entity ID', |
|
`attribute_id` smallint(5) unsigned NOT NULL COMMENT 'Attribute ID', |
|
`store_id` smallint(5) unsigned NOT NULL COMMENT 'Store ID', |
|
`value` int(10) unsigned NOT NULL COMMENT 'Value', |
|
`source_id` int(10) unsigned NOT NULL DEFAULT 0 COMMENT 'Original entity ID for attribute value', |
|
PRIMARY KEY (`entity_id`,`attribute_id`,`store_id`,`value`,`source_id`), |
|
KEY `CATALOG_PRODUCT_INDEX_EAV_TMP_ATTRIBUTE_ID` (`attribute_id`), |
|
KEY `CATALOG_PRODUCT_INDEX_EAV_TMP_STORE_ID` (`store_id`), |
|
KEY `CATALOG_PRODUCT_INDEX_EAV_TMP_VALUE` (`value`) |
|
) ENGINE=InnoDB DEFAULT CHARSET=utf8mb3 COLLATE=utf8mb3_general_ci COMMENT='Catalog Product EAV Indexer Temp Table'; |
|
/*!40101 SET character_set_client = @saved_cs_client */; |
|
|
|
-- |
|
-- Table structure for table `catalog_product_index_price` |
|
-- |
|
|
|
DROP TABLE IF EXISTS `catalog_product_index_price`; |
|
/*!40101 SET @saved_cs_client = @@character_set_client */; |
|
/*!40101 SET character_set_client = utf8 */; |
|
CREATE TABLE `catalog_product_index_price` ( |
|
`entity_id` int(10) unsigned NOT NULL COMMENT 'Entity ID', |
|
`customer_group_id` int(10) unsigned NOT NULL COMMENT 'Customer Group ID', |
|
`website_id` smallint(5) unsigned NOT NULL COMMENT 'Website ID', |
|
`tax_class_id` smallint(5) unsigned DEFAULT 0 COMMENT 'Tax Class ID', |
|
`price` decimal(20,6) DEFAULT NULL COMMENT 'Price', |
|
`final_price` decimal(20,6) DEFAULT NULL COMMENT 'Final Price', |
|
`min_price` decimal(20,6) DEFAULT NULL COMMENT 'Min Price', |
|
`max_price` decimal(20,6) DEFAULT NULL COMMENT 'Max Price', |
|
`tier_price` decimal(20,6) DEFAULT NULL COMMENT 'Tier Price', |
|
PRIMARY KEY (`entity_id`,`customer_group_id`,`website_id`), |
|
KEY `CATALOG_PRODUCT_INDEX_PRICE_CUSTOMER_GROUP_ID` (`customer_group_id`), |
|
KEY `CATALOG_PRODUCT_INDEX_PRICE_MIN_PRICE` (`min_price`), |
|
KEY `CAT_PRD_IDX_PRICE_WS_ID_CSTR_GROUP_ID_MIN_PRICE` (`website_id`,`customer_group_id`,`min_price`) |
|
) ENGINE=InnoDB DEFAULT CHARSET=utf8mb3 COLLATE=utf8mb3_general_ci COMMENT='Catalog Product Price Index Table'; |
|
/*!40101 SET character_set_client = @saved_cs_client */; |
|
|
|
-- |
|
-- Table structure for table `catalog_product_index_price_bundle_idx` |
|
-- |
|
|
|
DROP TABLE IF EXISTS `catalog_product_index_price_bundle_idx`; |
|
/*!40101 SET @saved_cs_client = @@character_set_client */; |
|
/*!40101 SET character_set_client = utf8 */; |
|
CREATE TABLE `catalog_product_index_price_bundle_idx` ( |
|
`entity_id` int(10) unsigned NOT NULL COMMENT 'Entity ID', |
|
`customer_group_id` int(11) NOT NULL, |
|
`website_id` smallint(5) unsigned NOT NULL COMMENT 'Website ID', |
|
`tax_class_id` smallint(5) unsigned DEFAULT 0 COMMENT 'Tax Class ID', |
|
`price_type` smallint(5) unsigned NOT NULL COMMENT 'Price Type', |
|
`special_price` decimal(20,6) DEFAULT NULL COMMENT 'Special Price', |
|
`tier_percent` decimal(20,6) DEFAULT NULL COMMENT 'Tier Percent', |
|
`orig_price` decimal(20,6) DEFAULT NULL COMMENT 'Orig Price', |
|
`price` decimal(20,6) DEFAULT NULL COMMENT 'Price', |
|
`min_price` decimal(20,6) DEFAULT NULL COMMENT 'Min Price', |
|
`max_price` decimal(20,6) DEFAULT NULL COMMENT 'Max Price', |
|
`tier_price` decimal(20,6) DEFAULT NULL COMMENT 'Tier Price', |
|
`base_tier` decimal(20,6) DEFAULT NULL COMMENT 'Base Tier', |
|
PRIMARY KEY (`entity_id`,`customer_group_id`,`website_id`) |
|
) ENGINE=InnoDB DEFAULT CHARSET=utf8mb3 COLLATE=utf8mb3_general_ci COMMENT='Catalog Product Index Price Bundle Idx'; |
|
/*!40101 SET character_set_client = @saved_cs_client */; |
|
|
|
-- |
|
-- Table structure for table `catalog_product_index_price_bundle_opt_idx` |
|
-- |
|
|
|
DROP TABLE IF EXISTS `catalog_product_index_price_bundle_opt_idx`; |
|
/*!40101 SET @saved_cs_client = @@character_set_client */; |
|
/*!40101 SET character_set_client = utf8 */; |
|
CREATE TABLE `catalog_product_index_price_bundle_opt_idx` ( |
|
`entity_id` int(10) unsigned NOT NULL COMMENT 'Entity ID', |
|
`customer_group_id` int(11) NOT NULL, |
|
`website_id` smallint(5) unsigned NOT NULL COMMENT 'Website ID', |
|
`option_id` int(10) unsigned NOT NULL DEFAULT 0 COMMENT 'Option ID', |
|
`min_price` decimal(20,6) DEFAULT NULL COMMENT 'Min Price', |
|
`alt_price` decimal(20,6) DEFAULT NULL COMMENT 'Alt Price', |
|
`max_price` decimal(20,6) DEFAULT NULL COMMENT 'Max Price', |
|
`tier_price` decimal(20,6) DEFAULT NULL COMMENT 'Tier Price', |
|
`alt_tier_price` decimal(20,6) DEFAULT NULL COMMENT 'Alt Tier Price', |
|
PRIMARY KEY (`entity_id`,`customer_group_id`,`website_id`,`option_id`) |
|
) ENGINE=InnoDB DEFAULT CHARSET=utf8mb3 COLLATE=utf8mb3_general_ci COMMENT='Catalog Product Index Price Bundle Opt Idx'; |
|
/*!40101 SET character_set_client = @saved_cs_client */; |
|
|
|
-- |
|
-- Table structure for table `catalog_product_index_price_bundle_opt_tmp` |
|
-- |
|
|
|
DROP TABLE IF EXISTS `catalog_product_index_price_bundle_opt_tmp`; |
|
/*!40101 SET @saved_cs_client = @@character_set_client */; |
|
/*!40101 SET character_set_client = utf8 */; |
|
CREATE TABLE `catalog_product_index_price_bundle_opt_tmp` ( |
|
`entity_id` int(10) unsigned NOT NULL COMMENT 'Entity ID', |
|
`customer_group_id` int(11) NOT NULL, |
|
`website_id` smallint(5) unsigned NOT NULL COMMENT 'Website ID', |
|
`option_id` int(10) unsigned NOT NULL DEFAULT 0 COMMENT 'Option ID', |
|
`min_price` decimal(20,6) DEFAULT NULL COMMENT 'Min Price', |
|
`alt_price` decimal(20,6) DEFAULT NULL COMMENT 'Alt Price', |
|
`max_price` decimal(20,6) DEFAULT NULL COMMENT 'Max Price', |
|
`tier_price` decimal(20,6) DEFAULT NULL COMMENT 'Tier Price', |
|
`alt_tier_price` decimal(20,6) DEFAULT NULL COMMENT 'Alt Tier Price', |
|
PRIMARY KEY (`entity_id`,`customer_group_id`,`website_id`,`option_id`) |
|
) ENGINE=InnoDB DEFAULT CHARSET=utf8mb3 COLLATE=utf8mb3_general_ci COMMENT='Catalog Product Index Price Bundle Opt Tmp'; |
|
/*!40101 SET character_set_client = @saved_cs_client */; |
|
|
|
-- |
|
-- Table structure for table `catalog_product_index_price_bundle_sel_idx` |
|
-- |
|
|
|
DROP TABLE IF EXISTS `catalog_product_index_price_bundle_sel_idx`; |
|
/*!40101 SET @saved_cs_client = @@character_set_client */; |
|
/*!40101 SET character_set_client = utf8 */; |
|
CREATE TABLE `catalog_product_index_price_bundle_sel_idx` ( |
|
`entity_id` int(10) unsigned NOT NULL COMMENT 'Entity ID', |
|
`customer_group_id` int(11) NOT NULL, |
|
`website_id` smallint(5) unsigned NOT NULL COMMENT 'Website ID', |
|
`option_id` int(10) unsigned NOT NULL DEFAULT 0 COMMENT 'Option ID', |
|
`selection_id` int(10) unsigned NOT NULL DEFAULT 0 COMMENT 'Selection ID', |
|
`group_type` smallint(5) unsigned DEFAULT 0 COMMENT 'Group Type', |
|
`is_required` smallint(5) unsigned DEFAULT 0 COMMENT 'Is Required', |
|
`price` decimal(20,6) DEFAULT NULL COMMENT 'Price', |
|
`tier_price` decimal(20,6) DEFAULT NULL COMMENT 'Tier Price', |
|
PRIMARY KEY (`entity_id`,`customer_group_id`,`website_id`,`option_id`,`selection_id`) |
|
) ENGINE=InnoDB DEFAULT CHARSET=utf8mb3 COLLATE=utf8mb3_general_ci COMMENT='Catalog Product Index Price Bundle Sel Idx'; |
|
/*!40101 SET character_set_client = @saved_cs_client */; |
|
|
|
-- |
|
-- Table structure for table `catalog_product_index_price_bundle_sel_tmp` |
|
-- |
|
|
|
DROP TABLE IF EXISTS `catalog_product_index_price_bundle_sel_tmp`; |
|
/*!40101 SET @saved_cs_client = @@character_set_client */; |
|
/*!40101 SET character_set_client = utf8 */; |
|
CREATE TABLE `catalog_product_index_price_bundle_sel_tmp` ( |
|
`entity_id` int(10) unsigned NOT NULL COMMENT 'Entity ID', |
|
`customer_group_id` int(11) NOT NULL, |
|
`website_id` smallint(5) unsigned NOT NULL COMMENT 'Website ID', |
|
`option_id` int(10) unsigned NOT NULL DEFAULT 0 COMMENT 'Option ID', |
|
`selection_id` int(10) unsigned NOT NULL DEFAULT 0 COMMENT 'Selection ID', |
|
`group_type` smallint(5) unsigned DEFAULT 0 COMMENT 'Group Type', |
|
`is_required` smallint(5) unsigned DEFAULT 0 COMMENT 'Is Required', |
|
`price` decimal(20,6) DEFAULT NULL COMMENT 'Price', |
|
`tier_price` decimal(20,6) DEFAULT NULL COMMENT 'Tier Price', |
|
PRIMARY KEY (`entity_id`,`customer_group_id`,`website_id`,`option_id`,`selection_id`) |
|
) ENGINE=InnoDB DEFAULT CHARSET=utf8mb3 COLLATE=utf8mb3_general_ci COMMENT='Catalog Product Index Price Bundle Sel Tmp'; |
|
/*!40101 SET character_set_client = @saved_cs_client */; |
|
|
|
-- |
|
-- Table structure for table `catalog_product_index_price_bundle_tmp` |
|
-- |
|
|
|
DROP TABLE IF EXISTS `catalog_product_index_price_bundle_tmp`; |
|
/*!40101 SET @saved_cs_client = @@character_set_client */; |
|
/*!40101 SET character_set_client = utf8 */; |
|
CREATE TABLE `catalog_product_index_price_bundle_tmp` ( |
|
`entity_id` int(10) unsigned NOT NULL COMMENT 'Entity ID', |
|
`customer_group_id` int(11) NOT NULL, |
|
`website_id` smallint(5) unsigned NOT NULL COMMENT 'Website ID', |
|
`tax_class_id` smallint(5) unsigned DEFAULT 0 COMMENT 'Tax Class ID', |
|
`price_type` smallint(5) unsigned NOT NULL COMMENT 'Price Type', |
|
`special_price` decimal(20,6) DEFAULT NULL COMMENT 'Special Price', |
|
`tier_percent` decimal(20,6) DEFAULT NULL COMMENT 'Tier Percent', |
|
`orig_price` decimal(20,6) DEFAULT NULL COMMENT 'Orig Price', |
|
`price` decimal(20,6) DEFAULT NULL COMMENT 'Price', |
|
`min_price` decimal(20,6) DEFAULT NULL COMMENT 'Min Price', |
|
`max_price` decimal(20,6) DEFAULT NULL COMMENT 'Max Price', |
|
`tier_price` decimal(20,6) DEFAULT NULL COMMENT 'Tier Price', |
|
`base_tier` decimal(20,6) DEFAULT NULL COMMENT 'Base Tier', |
|
PRIMARY KEY (`entity_id`,`customer_group_id`,`website_id`) |
|
) ENGINE=InnoDB DEFAULT CHARSET=utf8mb3 COLLATE=utf8mb3_general_ci COMMENT='Catalog Product Index Price Bundle Tmp'; |
|
/*!40101 SET character_set_client = @saved_cs_client */; |
|
|
|
-- |
|
-- Table structure for table `catalog_product_index_price_cfg_opt_agr_idx` |
|
-- |
|
|
|
DROP TABLE IF EXISTS `catalog_product_index_price_cfg_opt_agr_idx`; |
|
/*!40101 SET @saved_cs_client = @@character_set_client */; |
|
/*!40101 SET character_set_client = utf8 */; |
|
CREATE TABLE `catalog_product_index_price_cfg_opt_agr_idx` ( |
|
`parent_id` int(10) unsigned NOT NULL COMMENT 'Parent ID', |
|
`child_id` int(10) unsigned NOT NULL COMMENT 'Child ID', |
|
`customer_group_id` int(10) unsigned NOT NULL DEFAULT 0 COMMENT 'Customer Group ID', |
|
`website_id` smallint(5) unsigned NOT NULL COMMENT 'Website ID', |
|
`price` decimal(20,6) DEFAULT NULL COMMENT 'Price', |
|
`tier_price` decimal(20,6) DEFAULT NULL COMMENT 'Tier Price', |
|
PRIMARY KEY (`parent_id`,`child_id`,`customer_group_id`,`website_id`) |
|
) ENGINE=InnoDB DEFAULT CHARSET=utf8mb3 COLLATE=utf8mb3_general_ci COMMENT='Catalog Product Price Indexer Config Option Aggregate Index Table'; |
|
/*!40101 SET character_set_client = @saved_cs_client */; |
|
|
|
-- |
|
-- Table structure for table `catalog_product_index_price_cfg_opt_agr_tmp` |
|
-- |
|
|
|
DROP TABLE IF EXISTS `catalog_product_index_price_cfg_opt_agr_tmp`; |
|
/*!40101 SET @saved_cs_client = @@character_set_client */; |
|
/*!40101 SET character_set_client = utf8 */; |
|
CREATE TABLE `catalog_product_index_price_cfg_opt_agr_tmp` ( |
|
`parent_id` int(10) unsigned NOT NULL COMMENT 'Parent ID', |
|
`child_id` int(10) unsigned NOT NULL COMMENT 'Child ID', |
|
`customer_group_id` int(10) unsigned NOT NULL DEFAULT 0 COMMENT 'Customer Group ID', |
|
`website_id` smallint(5) unsigned NOT NULL COMMENT 'Website ID', |
|
`price` decimal(20,6) DEFAULT NULL COMMENT 'Price', |
|
`tier_price` decimal(20,6) DEFAULT NULL COMMENT 'Tier Price', |
|
PRIMARY KEY (`parent_id`,`child_id`,`customer_group_id`,`website_id`) |
|
) ENGINE=InnoDB DEFAULT CHARSET=utf8mb3 COLLATE=utf8mb3_general_ci COMMENT='Catalog Product Price Indexer Config Option Aggregate Temp Table'; |
|
/*!40101 SET character_set_client = @saved_cs_client */; |
|
|
|
-- |
|
-- Table structure for table `catalog_product_index_price_cfg_opt_idx` |
|
-- |
|
|
|
DROP TABLE IF EXISTS `catalog_product_index_price_cfg_opt_idx`; |
|
/*!40101 SET @saved_cs_client = @@character_set_client */; |
|
/*!40101 SET character_set_client = utf8 */; |
|
CREATE TABLE `catalog_product_index_price_cfg_opt_idx` ( |
|
`entity_id` int(10) unsigned NOT NULL COMMENT 'Entity ID', |
|
`customer_group_id` int(10) unsigned NOT NULL DEFAULT 0 COMMENT 'Customer Group ID', |
|
`website_id` smallint(5) unsigned NOT NULL COMMENT 'Website ID', |
|
`min_price` decimal(20,6) DEFAULT NULL COMMENT 'Min Price', |
|
`max_price` decimal(20,6) DEFAULT NULL COMMENT 'Max Price', |
|
`tier_price` decimal(20,6) DEFAULT NULL COMMENT 'Tier Price', |
|
PRIMARY KEY (`entity_id`,`customer_group_id`,`website_id`) |
|
) ENGINE=InnoDB DEFAULT CHARSET=utf8mb3 COLLATE=utf8mb3_general_ci COMMENT='Catalog Product Price Indexer Config Option Index Table'; |
|
/*!40101 SET character_set_client = @saved_cs_client */; |
|
|
|
-- |
|
-- Table structure for table `catalog_product_index_price_cfg_opt_tmp` |
|
-- |
|
|
|
DROP TABLE IF EXISTS `catalog_product_index_price_cfg_opt_tmp`; |
|
/*!40101 SET @saved_cs_client = @@character_set_client */; |
|
/*!40101 SET character_set_client = utf8 */; |
|
CREATE TABLE `catalog_product_index_price_cfg_opt_tmp` ( |
|
`entity_id` int(10) unsigned NOT NULL COMMENT 'Entity ID', |
|
`customer_group_id` int(10) unsigned NOT NULL DEFAULT 0 COMMENT 'Customer Group ID', |
|
`website_id` smallint(5) unsigned NOT NULL COMMENT 'Website ID', |
|
`min_price` decimal(20,6) DEFAULT NULL COMMENT 'Min Price', |
|
`max_price` decimal(20,6) DEFAULT NULL COMMENT 'Max Price', |
|
`tier_price` decimal(20,6) DEFAULT NULL COMMENT 'Tier Price', |
|
PRIMARY KEY (`entity_id`,`customer_group_id`,`website_id`) |
|
) ENGINE=InnoDB DEFAULT CHARSET=utf8mb3 COLLATE=utf8mb3_general_ci COMMENT='Catalog Product Price Indexer Config Option Temp Table'; |
|
/*!40101 SET character_set_client = @saved_cs_client */; |
|
|
|
-- |
|
-- Table structure for table `catalog_product_index_price_downlod_idx` |
|
-- |
|
|
|
DROP TABLE IF EXISTS `catalog_product_index_price_downlod_idx`; |
|
/*!40101 SET @saved_cs_client = @@character_set_client */; |
|
/*!40101 SET character_set_client = utf8 */; |
|
CREATE TABLE `catalog_product_index_price_downlod_idx` ( |
|
`entity_id` int(10) unsigned NOT NULL COMMENT 'Entity ID', |
|
`customer_group_id` int(11) NOT NULL, |
|
`website_id` smallint(5) unsigned NOT NULL COMMENT 'Website ID', |
|
`min_price` decimal(20,6) NOT NULL DEFAULT 0.000000 COMMENT 'Minimum price', |
|
`max_price` decimal(20,6) NOT NULL DEFAULT 0.000000 COMMENT 'Maximum price', |
|
PRIMARY KEY (`entity_id`,`customer_group_id`,`website_id`) |
|
) ENGINE=InnoDB DEFAULT CHARSET=utf8mb3 COLLATE=utf8mb3_general_ci COMMENT='Indexer Table for price of downloadable products'; |
|
/*!40101 SET character_set_client = @saved_cs_client */; |
|
|
|
-- |
|
-- Table structure for table `catalog_product_index_price_downlod_tmp` |
|
-- |
|
|
|
DROP TABLE IF EXISTS `catalog_product_index_price_downlod_tmp`; |
|
/*!40101 SET @saved_cs_client = @@character_set_client */; |
|
/*!40101 SET character_set_client = utf8 */; |
|
CREATE TABLE `catalog_product_index_price_downlod_tmp` ( |
|
`entity_id` int(10) unsigned NOT NULL COMMENT 'Entity ID', |
|
`customer_group_id` int(11) NOT NULL, |
|
`website_id` smallint(5) unsigned NOT NULL COMMENT 'Website ID', |
|
`min_price` decimal(20,6) NOT NULL DEFAULT 0.000000 COMMENT 'Minimum price', |
|
`max_price` decimal(20,6) NOT NULL DEFAULT 0.000000 COMMENT 'Maximum price', |
|
PRIMARY KEY (`entity_id`,`customer_group_id`,`website_id`) |
|
) ENGINE=InnoDB DEFAULT CHARSET=utf8mb3 COLLATE=utf8mb3_general_ci COMMENT='Temporary Indexer Table for price of downloadable products'; |
|
/*!40101 SET character_set_client = @saved_cs_client */; |
|
|
|
-- |
|
-- Table structure for table `catalog_product_index_price_final_idx` |
|
-- |
|
|
|
DROP TABLE IF EXISTS `catalog_product_index_price_final_idx`; |
|
/*!40101 SET @saved_cs_client = @@character_set_client */; |
|
/*!40101 SET character_set_client = utf8 */; |
|
CREATE TABLE `catalog_product_index_price_final_idx` ( |
|
`entity_id` int(10) unsigned NOT NULL COMMENT 'Entity ID', |
|
`customer_group_id` int(10) unsigned NOT NULL DEFAULT 0 COMMENT 'Customer Group ID', |
|
`website_id` smallint(5) unsigned NOT NULL COMMENT 'Website ID', |
|
`tax_class_id` smallint(5) unsigned DEFAULT 0 COMMENT 'Tax Class ID', |
|
`orig_price` decimal(20,6) DEFAULT NULL COMMENT 'Original Price', |
|
`price` decimal(20,6) DEFAULT NULL COMMENT 'Price', |
|
`min_price` decimal(20,6) DEFAULT NULL COMMENT 'Min Price', |
|
`max_price` decimal(20,6) DEFAULT NULL COMMENT 'Max Price', |
|
`tier_price` decimal(20,6) DEFAULT NULL COMMENT 'Tier Price', |
|
`base_tier` decimal(20,6) DEFAULT NULL COMMENT 'Base Tier', |
|
PRIMARY KEY (`entity_id`,`customer_group_id`,`website_id`) |
|
) ENGINE=InnoDB DEFAULT CHARSET=utf8mb3 COLLATE=utf8mb3_general_ci COMMENT='Catalog Product Price Indexer Final Index Table'; |
|
/*!40101 SET character_set_client = @saved_cs_client */; |
|
|
|
-- |
|
-- Table structure for table `catalog_product_index_price_final_tmp` |
|
-- |
|
|
|
DROP TABLE IF EXISTS `catalog_product_index_price_final_tmp`; |
|
/*!40101 SET @saved_cs_client = @@character_set_client */; |
|
/*!40101 SET character_set_client = utf8 */; |
|
CREATE TABLE `catalog_product_index_price_final_tmp` ( |
|
`entity_id` int(10) unsigned NOT NULL COMMENT 'Entity ID', |
|
`customer_group_id` int(10) unsigned NOT NULL DEFAULT 0 COMMENT 'Customer Group ID', |
|
`website_id` smallint(5) unsigned NOT NULL COMMENT 'Website ID', |
|
`tax_class_id` smallint(5) unsigned DEFAULT 0 COMMENT 'Tax Class ID', |
|
`orig_price` decimal(20,6) DEFAULT NULL COMMENT 'Original Price', |
|
`price` decimal(20,6) DEFAULT NULL COMMENT 'Price', |
|
`min_price` decimal(20,6) DEFAULT NULL COMMENT 'Min Price', |
|
`max_price` decimal(20,6) DEFAULT NULL COMMENT 'Max Price', |
|
`tier_price` decimal(20,6) DEFAULT NULL COMMENT 'Tier Price', |
|
`base_tier` decimal(20,6) DEFAULT NULL COMMENT 'Base Tier', |
|
PRIMARY KEY (`entity_id`,`customer_group_id`,`website_id`) |
|
) ENGINE=InnoDB DEFAULT CHARSET=utf8mb3 COLLATE=utf8mb3_general_ci COMMENT='Catalog Product Price Indexer Final Temp Table'; |
|
/*!40101 SET character_set_client = @saved_cs_client */; |
|
|
|
-- |
|
-- Table structure for table `catalog_product_index_price_idx` |
|
-- |
|
|
|
DROP TABLE IF EXISTS `catalog_product_index_price_idx`; |
|
/*!40101 SET @saved_cs_client = @@character_set_client */; |
|
/*!40101 SET character_set_client = utf8 */; |
|
CREATE TABLE `catalog_product_index_price_idx` ( |
|
`entity_id` int(10) unsigned NOT NULL COMMENT 'Entity ID', |
|
`customer_group_id` int(10) unsigned NOT NULL DEFAULT 0 COMMENT 'Customer Group ID', |
|
`website_id` smallint(5) unsigned NOT NULL COMMENT 'Website ID', |
|
`tax_class_id` smallint(5) unsigned DEFAULT 0 COMMENT 'Tax Class ID', |
|
`price` decimal(20,6) DEFAULT NULL COMMENT 'Price', |
|
`final_price` decimal(20,6) DEFAULT NULL COMMENT 'Final Price', |
|
`min_price` decimal(20,6) DEFAULT NULL COMMENT 'Min Price', |
|
`max_price` decimal(20,6) DEFAULT NULL COMMENT 'Max Price', |
|
`tier_price` decimal(20,6) DEFAULT NULL COMMENT 'Tier Price', |
|
PRIMARY KEY (`entity_id`,`customer_group_id`,`website_id`), |
|
KEY `CATALOG_PRODUCT_INDEX_PRICE_IDX_CUSTOMER_GROUP_ID` (`customer_group_id`), |
|
KEY `CATALOG_PRODUCT_INDEX_PRICE_IDX_WEBSITE_ID` (`website_id`), |
|
KEY `CATALOG_PRODUCT_INDEX_PRICE_IDX_MIN_PRICE` (`min_price`) |
|
) ENGINE=InnoDB DEFAULT CHARSET=utf8mb3 COLLATE=utf8mb3_general_ci COMMENT='Catalog Product Price Indexer Index Table'; |
|
/*!40101 SET character_set_client = @saved_cs_client */; |
|
|
|
-- |
|
-- Table structure for table `catalog_product_index_price_opt_agr_idx` |
|
-- |
|
|
|
DROP TABLE IF EXISTS `catalog_product_index_price_opt_agr_idx`; |
|
/*!40101 SET @saved_cs_client = @@character_set_client */; |
|
/*!40101 SET character_set_client = utf8 */; |
|
CREATE TABLE `catalog_product_index_price_opt_agr_idx` ( |
|
`entity_id` int(10) unsigned NOT NULL COMMENT 'Entity ID', |
|
`customer_group_id` int(10) unsigned NOT NULL DEFAULT 0 COMMENT 'Customer Group ID', |
|
`website_id` smallint(5) unsigned NOT NULL COMMENT 'Website ID', |
|
`option_id` int(10) unsigned NOT NULL DEFAULT 0 COMMENT 'Option ID', |
|
`min_price` decimal(20,6) DEFAULT NULL COMMENT 'Min Price', |
|
`max_price` decimal(20,6) DEFAULT NULL COMMENT 'Max Price', |
|
`tier_price` decimal(20,6) DEFAULT NULL COMMENT 'Tier Price', |
|
PRIMARY KEY (`entity_id`,`customer_group_id`,`website_id`,`option_id`) |
|
) ENGINE=InnoDB DEFAULT CHARSET=utf8mb3 COLLATE=utf8mb3_general_ci COMMENT='Catalog Product Price Indexer Option Aggregate Index Table'; |
|
/*!40101 SET character_set_client = @saved_cs_client */; |
|
|
|
-- |
|
-- Table structure for table `catalog_product_index_price_opt_agr_tmp` |
|
-- |
|
|
|
DROP TABLE IF EXISTS `catalog_product_index_price_opt_agr_tmp`; |
|
/*!40101 SET @saved_cs_client = @@character_set_client */; |
|
/*!40101 SET character_set_client = utf8 */; |
|
CREATE TABLE `catalog_product_index_price_opt_agr_tmp` ( |
|
`entity_id` int(10) unsigned NOT NULL COMMENT 'Entity ID', |
|
`customer_group_id` int(10) unsigned NOT NULL DEFAULT 0 COMMENT 'Customer Group ID', |
|
`website_id` smallint(5) unsigned NOT NULL COMMENT 'Website ID', |
|
`option_id` int(10) unsigned NOT NULL DEFAULT 0 COMMENT 'Option ID', |
|
`min_price` decimal(20,6) DEFAULT NULL COMMENT 'Min Price', |
|
`max_price` decimal(20,6) DEFAULT NULL COMMENT 'Max Price', |
|
`tier_price` decimal(20,6) DEFAULT NULL COMMENT 'Tier Price', |
|
PRIMARY KEY (`entity_id`,`customer_group_id`,`website_id`,`option_id`) |
|
) ENGINE=InnoDB DEFAULT CHARSET=utf8mb3 COLLATE=utf8mb3_general_ci COMMENT='Catalog Product Price Indexer Option Aggregate Temp Table'; |
|
/*!40101 SET character_set_client = @saved_cs_client */; |
|
|
|
-- |
|
-- Table structure for table `catalog_product_index_price_opt_idx` |
|
-- |
|
|
|
DROP TABLE IF EXISTS `catalog_product_index_price_opt_idx`; |
|
/*!40101 SET @saved_cs_client = @@character_set_client */; |
|
/*!40101 SET character_set_client = utf8 */; |
|
CREATE TABLE `catalog_product_index_price_opt_idx` ( |
|
`entity_id` int(10) unsigned NOT NULL COMMENT 'Entity ID', |
|
`customer_group_id` int(10) unsigned NOT NULL DEFAULT 0 COMMENT 'Customer Group ID', |
|
`website_id` smallint(5) unsigned NOT NULL COMMENT 'Website ID', |
|
`min_price` decimal(20,6) DEFAULT NULL COMMENT 'Min Price', |
|
`max_price` decimal(20,6) DEFAULT NULL COMMENT 'Max Price', |
|
`tier_price` decimal(20,6) DEFAULT NULL COMMENT 'Tier Price', |
|
PRIMARY KEY (`entity_id`,`customer_group_id`,`website_id`) |
|
) ENGINE=InnoDB DEFAULT CHARSET=utf8mb3 COLLATE=utf8mb3_general_ci COMMENT='Catalog Product Price Indexer Option Index Table'; |
|
/*!40101 SET character_set_client = @saved_cs_client */; |
|
|
|
-- |
|
-- Table structure for table `catalog_product_index_price_opt_tmp` |
|
-- |
|
|
|
DROP TABLE IF EXISTS `catalog_product_index_price_opt_tmp`; |
|
/*!40101 SET @saved_cs_client = @@character_set_client */; |
|
/*!40101 SET character_set_client = utf8 */; |
|
CREATE TABLE `catalog_product_index_price_opt_tmp` ( |
|
`entity_id` int(10) unsigned NOT NULL COMMENT 'Entity ID', |
|
`customer_group_id` int(10) unsigned NOT NULL DEFAULT 0 COMMENT 'Customer Group ID', |
|
`website_id` smallint(5) unsigned NOT NULL COMMENT 'Website ID', |
|
`min_price` decimal(20,6) DEFAULT NULL COMMENT 'Min Price', |
|
`max_price` decimal(20,6) DEFAULT NULL COMMENT 'Max Price', |
|
`tier_price` decimal(20,6) DEFAULT NULL COMMENT 'Tier Price', |
|
PRIMARY KEY (`entity_id`,`customer_group_id`,`website_id`) |
|
) ENGINE=InnoDB DEFAULT CHARSET=utf8mb3 COLLATE=utf8mb3_general_ci COMMENT='Catalog Product Price Indexer Option Temp Table'; |
|
/*!40101 SET character_set_client = @saved_cs_client */; |
|
|
|
-- |
|
-- Table structure for table `catalog_product_index_price_replica` |
|
-- |
|
|
|
DROP TABLE IF EXISTS `catalog_product_index_price_replica`; |
|
/*!40101 SET @saved_cs_client = @@character_set_client */; |
|
/*!40101 SET character_set_client = utf8 */; |
|
CREATE TABLE `catalog_product_index_price_replica` ( |
|
`entity_id` int(10) unsigned NOT NULL COMMENT 'Entity ID', |
|
`customer_group_id` int(10) unsigned NOT NULL COMMENT 'Customer Group ID', |
|
`website_id` smallint(5) unsigned NOT NULL COMMENT 'Website ID', |
|
`tax_class_id` smallint(5) unsigned DEFAULT 0 COMMENT 'Tax Class ID', |
|
`price` decimal(20,6) DEFAULT NULL COMMENT 'Price', |
|
`final_price` decimal(20,6) DEFAULT NULL COMMENT 'Final Price', |
|
`min_price` decimal(20,6) DEFAULT NULL COMMENT 'Min Price', |
|
`max_price` decimal(20,6) DEFAULT NULL COMMENT 'Max Price', |
|
`tier_price` decimal(20,6) DEFAULT NULL COMMENT 'Tier Price', |
|
PRIMARY KEY (`entity_id`,`customer_group_id`,`website_id`), |
|
KEY `CATALOG_PRODUCT_INDEX_PRICE_CUSTOMER_GROUP_ID` (`customer_group_id`), |
|
KEY `CATALOG_PRODUCT_INDEX_PRICE_MIN_PRICE` (`min_price`), |
|
KEY `CAT_PRD_IDX_PRICE_WS_ID_CSTR_GROUP_ID_MIN_PRICE` (`website_id`,`customer_group_id`,`min_price`) |
|
) ENGINE=InnoDB DEFAULT CHARSET=utf8mb3 COLLATE=utf8mb3_general_ci COMMENT='Catalog Product Price Index Table'; |
|
/*!40101 SET character_set_client = @saved_cs_client */; |
|
|
|
-- |
|
-- Table structure for table `catalog_product_index_price_tmp` |
|
-- |
|
|
|
DROP TABLE IF EXISTS `catalog_product_index_price_tmp`; |
|
/*!40101 SET @saved_cs_client = @@character_set_client */; |
|
/*!40101 SET character_set_client = utf8 */; |
|
CREATE TABLE `catalog_product_index_price_tmp` ( |
|
`entity_id` int(10) unsigned NOT NULL COMMENT 'Product ID', |
|
`customer_group_id` int(10) unsigned NOT NULL DEFAULT 0 COMMENT 'Customer Group ID', |
|
`website_id` smallint(5) unsigned NOT NULL COMMENT 'Website ID', |
|
`tax_class_id` smallint(5) unsigned DEFAULT 0 COMMENT 'Tax Class ID', |
|
`price` decimal(20,6) DEFAULT NULL COMMENT 'Price', |
|
`final_price` decimal(20,6) DEFAULT NULL COMMENT 'Final Price', |
|
`min_price` decimal(20,6) DEFAULT NULL COMMENT 'Min Price', |
|
`max_price` decimal(20,6) DEFAULT NULL COMMENT 'Max Price', |
|
`tier_price` decimal(20,6) DEFAULT NULL COMMENT 'Tier Price', |
|
`id` int(10) unsigned NOT NULL AUTO_INCREMENT COMMENT 'ID', |
|
PRIMARY KEY (`id`) |
|
) ENGINE=InnoDB DEFAULT CHARSET=utf8mb3 COLLATE=utf8mb3_general_ci COMMENT='Catalog Product Price Indexer Temp Table'; |
|
/*!40101 SET character_set_client = @saved_cs_client */; |
|
|
|
-- |
|
-- Table structure for table `catalog_product_index_tier_price` |
|
-- |
|
|
|
DROP TABLE IF EXISTS `catalog_product_index_tier_price`; |
|
/*!40101 SET @saved_cs_client = @@character_set_client */; |
|
/*!40101 SET character_set_client = utf8 */; |
|
CREATE TABLE `catalog_product_index_tier_price` ( |
|
`entity_id` int(10) unsigned NOT NULL COMMENT 'Entity ID', |
|
`customer_group_id` int(10) unsigned NOT NULL COMMENT 'Customer Group ID', |
|
`website_id` smallint(5) unsigned NOT NULL COMMENT 'Website ID', |
|
`min_price` decimal(20,6) DEFAULT NULL COMMENT 'Min Price', |
|
PRIMARY KEY (`entity_id`,`customer_group_id`,`website_id`), |
|
KEY `CATALOG_PRODUCT_INDEX_TIER_PRICE_CUSTOMER_GROUP_ID` (`customer_group_id`), |
|
KEY `CATALOG_PRODUCT_INDEX_TIER_PRICE_WEBSITE_ID` (`website_id`), |
|
CONSTRAINT `CAT_PRD_IDX_TIER_PRICE_CSTR_GROUP_ID_CSTR_GROUP_CSTR_GROUP_ID` FOREIGN KEY (`customer_group_id`) REFERENCES `customer_group` (`customer_group_id`) ON DELETE CASCADE, |
|
CONSTRAINT `CAT_PRD_IDX_TIER_PRICE_ENTT_ID_SEQUENCE_PRD_SEQUENCE_VAL` FOREIGN KEY (`entity_id`) REFERENCES `sequence_product` (`sequence_value`) ON DELETE CASCADE, |
|
CONSTRAINT `CAT_PRD_IDX_TIER_PRICE_WS_ID_STORE_WS_WS_ID` FOREIGN KEY (`website_id`) REFERENCES `store_website` (`website_id`) ON DELETE CASCADE |
|
) ENGINE=InnoDB DEFAULT CHARSET=utf8mb3 COLLATE=utf8mb3_general_ci COMMENT='Catalog Product Tier Price Index Table'; |
|
/*!40101 SET character_set_client = @saved_cs_client */; |
|
|
|
-- |
|
-- Table structure for table `catalog_product_index_website` |
|
-- |
|
|
|
DROP TABLE IF EXISTS `catalog_product_index_website`; |
|
/*!40101 SET @saved_cs_client = @@character_set_client */; |
|
/*!40101 SET character_set_client = utf8 */; |
|
CREATE TABLE `catalog_product_index_website` ( |
|
`website_id` smallint(5) unsigned NOT NULL COMMENT 'Website ID', |
|
`default_store_id` smallint(5) unsigned NOT NULL COMMENT 'Default store ID for website', |
|
`website_date` date DEFAULT NULL COMMENT 'Website Date', |
|
`rate` float DEFAULT 1 COMMENT 'Rate', |
|
PRIMARY KEY (`website_id`), |
|
KEY `CATALOG_PRODUCT_INDEX_WEBSITE_WEBSITE_DATE` (`website_date`), |
|
CONSTRAINT `CAT_PRD_IDX_WS_WS_ID_STORE_WS_WS_ID` FOREIGN KEY (`website_id`) REFERENCES `store_website` (`website_id`) ON DELETE CASCADE |
|
) ENGINE=InnoDB DEFAULT CHARSET=utf8mb3 COLLATE=utf8mb3_general_ci COMMENT='Catalog Product Website Index Table'; |
|
/*!40101 SET character_set_client = @saved_cs_client */; |
|
|
|
-- |
|
-- Table structure for table `catalog_product_link` |
|
-- |
|
|
|
DROP TABLE IF EXISTS `catalog_product_link`; |
|
/*!40101 SET @saved_cs_client = @@character_set_client */; |
|
/*!40101 SET character_set_client = utf8 */; |
|
CREATE TABLE `catalog_product_link` ( |
|
`link_id` int(10) unsigned NOT NULL AUTO_INCREMENT COMMENT 'Link ID', |
|
`product_id` int(10) unsigned NOT NULL DEFAULT 0 COMMENT 'Product ID', |
|
`linked_product_id` int(10) unsigned NOT NULL DEFAULT 0 COMMENT 'Linked Product ID', |
|
`link_type_id` smallint(5) unsigned NOT NULL DEFAULT 0 COMMENT 'Link Type ID', |
|
PRIMARY KEY (`link_id`), |
|
UNIQUE KEY `CATALOG_PRODUCT_LINK_LINK_TYPE_ID_PRODUCT_ID_LINKED_PRODUCT_ID` (`link_type_id`,`product_id`,`linked_product_id`), |
|
KEY `CATALOG_PRODUCT_LINK_PRODUCT_ID` (`product_id`), |
|
KEY `CATALOG_PRODUCT_LINK_LINKED_PRODUCT_ID` (`linked_product_id`), |
|
CONSTRAINT `CATALOG_PRODUCT_LINK_PRODUCT_ID_CATALOG_PRODUCT_ENTITY_ROW_ID` FOREIGN KEY (`product_id`) REFERENCES `catalog_product_entity` (`row_id`) ON DELETE CASCADE, |
|
CONSTRAINT `CAT_PRD_LNK_LNKED_PRD_ID_SEQUENCE_PRD_SEQUENCE_VAL` FOREIGN KEY (`linked_product_id`) REFERENCES `sequence_product` (`sequence_value`) ON DELETE CASCADE, |
|
CONSTRAINT `CAT_PRD_LNK_LNK_TYPE_ID_CAT_PRD_LNK_TYPE_LNK_TYPE_ID` FOREIGN KEY (`link_type_id`) REFERENCES `catalog_product_link_type` (`link_type_id`) ON DELETE CASCADE |
|
) ENGINE=InnoDB DEFAULT CHARSET=utf8mb3 COLLATE=utf8mb3_general_ci COMMENT='Catalog Product To Product Linkage Table'; |
|
/*!40101 SET character_set_client = @saved_cs_client */; |
|
/*!50003 SET @saved_cs_client = @@character_set_client */ ; |
|
/*!50003 SET @saved_cs_results = @@character_set_results */ ; |
|
/*!50003 SET @saved_col_connection = @@collation_connection */ ; |
|
/*!50003 SET character_set_client = utf8mb3 */ ; |
|
/*!50003 SET character_set_results = utf8mb3 */ ; |
|
/*!50003 SET collation_connection = utf8mb3_general_ci */ ; |
|
/*!50003 SET @saved_sql_mode = @@sql_mode */ ; |
|
/*!50003 SET sql_mode = '' */ ; |
|
DELIMITER ;; |
|
/*!50003 CREATE*/ /*!50017 DEFINER=CURRENT_USER*/ /*!50003 TRIGGER trg_catalog_product_link_after_insert AFTER INSERT ON catalog_product_link FOR EACH ROW |
|
BEGIN |
|
INSERT IGNORE INTO `catalogsearch_fulltext_cl` (`entity_id`) VALUES (NEW.`product_id`); |
|
INSERT IGNORE INTO `catalog_product_attribute_cl` (`entity_id`) VALUES (NEW.`product_id`); |
|
INSERT IGNORE INTO `catalogrule_product_cl` (`entity_id`) VALUES (NEW.`product_id`); |
|
INSERT IGNORE INTO `cataloginventory_stock_cl` (`entity_id`) VALUES (NEW.`product_id`); |
|
INSERT IGNORE INTO `catalog_product_price_cl` (`entity_id`) VALUES (NEW.`product_id`); |
|
END */;; |
|
DELIMITER ; |
|
/*!50003 SET sql_mode = @saved_sql_mode */ ; |
|
/*!50003 SET character_set_client = @saved_cs_client */ ; |
|
/*!50003 SET character_set_results = @saved_cs_results */ ; |
|
/*!50003 SET collation_connection = @saved_col_connection */ ; |
|
/*!50003 SET @saved_cs_client = @@character_set_client */ ; |
|
/*!50003 SET @saved_cs_results = @@character_set_results */ ; |
|
/*!50003 SET @saved_col_connection = @@collation_connection */ ; |
|
/*!50003 SET character_set_client = utf8mb3 */ ; |
|
/*!50003 SET character_set_results = utf8mb3 */ ; |
|
/*!50003 SET collation_connection = utf8mb3_general_ci */ ; |
|
/*!50003 SET @saved_sql_mode = @@sql_mode */ ; |
|
/*!50003 SET sql_mode = '' */ ; |
|
DELIMITER ;; |
|
/*!50003 CREATE*/ /*!50017 DEFINER=CURRENT_USER*/ /*!50003 TRIGGER trg_catalog_product_link_after_update AFTER UPDATE ON catalog_product_link FOR EACH ROW |
|
BEGIN |
|
IF (NOT(NEW.`link_id` <=> OLD.`link_id`) OR NOT(NEW.`product_id` <=> OLD.`product_id`) OR NOT(NEW.`linked_product_id` <=> OLD.`linked_product_id`) OR NOT(NEW.`link_type_id` <=> OLD.`link_type_id`)) THEN INSERT IGNORE INTO `catalogsearch_fulltext_cl` (`entity_id`) VALUES (NEW.`product_id`); END IF; |
|
IF (NOT(NEW.`link_id` <=> OLD.`link_id`) OR NOT(NEW.`product_id` <=> OLD.`product_id`) OR NOT(NEW.`linked_product_id` <=> OLD.`linked_product_id`) OR NOT(NEW.`link_type_id` <=> OLD.`link_type_id`)) THEN INSERT IGNORE INTO `catalog_product_attribute_cl` (`entity_id`) VALUES (NEW.`product_id`); END IF; |
|
IF (NOT(NEW.`link_id` <=> OLD.`link_id`) OR NOT(NEW.`product_id` <=> OLD.`product_id`) OR NOT(NEW.`linked_product_id` <=> OLD.`linked_product_id`) OR NOT(NEW.`link_type_id` <=> OLD.`link_type_id`)) THEN INSERT IGNORE INTO `catalogrule_product_cl` (`entity_id`) VALUES (NEW.`product_id`); END IF; |
|
IF (NOT(NEW.`link_id` <=> OLD.`link_id`) OR NOT(NEW.`product_id` <=> OLD.`product_id`) OR NOT(NEW.`linked_product_id` <=> OLD.`linked_product_id`) OR NOT(NEW.`link_type_id` <=> OLD.`link_type_id`)) THEN INSERT IGNORE INTO `cataloginventory_stock_cl` (`entity_id`) VALUES (NEW.`product_id`); END IF; |
|
IF (NOT(NEW.`link_id` <=> OLD.`link_id`) OR NOT(NEW.`product_id` <=> OLD.`product_id`) OR NOT(NEW.`linked_product_id` <=> OLD.`linked_product_id`) OR NOT(NEW.`link_type_id` <=> OLD.`link_type_id`)) THEN INSERT IGNORE INTO `catalog_product_price_cl` (`entity_id`) VALUES (NEW.`product_id`); END IF; |
|
END */;; |
|
DELIMITER ; |
|
/*!50003 SET sql_mode = @saved_sql_mode */ ; |
|
/*!50003 SET character_set_client = @saved_cs_client */ ; |
|
/*!50003 SET character_set_results = @saved_cs_results */ ; |
|
/*!50003 SET collation_connection = @saved_col_connection */ ; |
|
/*!50003 SET @saved_cs_client = @@character_set_client */ ; |
|
/*!50003 SET @saved_cs_results = @@character_set_results */ ; |
|
/*!50003 SET @saved_col_connection = @@collation_connection */ ; |
|
/*!50003 SET character_set_client = utf8mb3 */ ; |
|
/*!50003 SET character_set_results = utf8mb3 */ ; |
|
/*!50003 SET collation_connection = utf8mb3_general_ci */ ; |
|
/*!50003 SET @saved_sql_mode = @@sql_mode */ ; |
|
/*!50003 SET sql_mode = '' */ ; |
|
DELIMITER ;; |
|
/*!50003 CREATE*/ /*!50017 DEFINER=CURRENT_USER*/ /*!50003 TRIGGER trg_catalog_product_link_after_delete AFTER DELETE ON catalog_product_link FOR EACH ROW |
|
BEGIN |
|
INSERT IGNORE INTO `catalogsearch_fulltext_cl` (`entity_id`) VALUES (OLD.`product_id`); |
|
INSERT IGNORE INTO `catalog_product_attribute_cl` (`entity_id`) VALUES (OLD.`product_id`); |
|
INSERT IGNORE INTO `catalogrule_product_cl` (`entity_id`) VALUES (OLD.`product_id`); |
|
INSERT IGNORE INTO `cataloginventory_stock_cl` (`entity_id`) VALUES (OLD.`product_id`); |
|
INSERT IGNORE INTO `catalog_product_price_cl` (`entity_id`) VALUES (OLD.`product_id`); |
|
END */;; |
|
DELIMITER ; |
|
/*!50003 SET sql_mode = @saved_sql_mode */ ; |
|
/*!50003 SET character_set_client = @saved_cs_client */ ; |
|
/*!50003 SET character_set_results = @saved_cs_results */ ; |
|
/*!50003 SET collation_connection = @saved_col_connection */ ; |
|
|
|
-- |
|
-- Table structure for table `catalog_product_link_attribute` |
|
-- |
|
|
|
DROP TABLE IF EXISTS `catalog_product_link_attribute`; |
|
/*!40101 SET @saved_cs_client = @@character_set_client */; |
|
/*!40101 SET character_set_client = utf8 */; |
|
CREATE TABLE `catalog_product_link_attribute` ( |
|
`product_link_attribute_id` smallint(5) unsigned NOT NULL AUTO_INCREMENT COMMENT 'Product Link Attribute ID', |
|
`link_type_id` smallint(5) unsigned NOT NULL DEFAULT 0 COMMENT 'Link Type ID', |
|
`product_link_attribute_code` varchar(32) DEFAULT NULL COMMENT 'Product Link Attribute Code', |
|
`data_type` varchar(32) DEFAULT NULL COMMENT 'Data Type', |
|
PRIMARY KEY (`product_link_attribute_id`), |
|
KEY `CATALOG_PRODUCT_LINK_ATTRIBUTE_LINK_TYPE_ID` (`link_type_id`), |
|
CONSTRAINT `CAT_PRD_LNK_ATTR_LNK_TYPE_ID_CAT_PRD_LNK_TYPE_LNK_TYPE_ID` FOREIGN KEY (`link_type_id`) REFERENCES `catalog_product_link_type` (`link_type_id`) ON DELETE CASCADE |
|
) ENGINE=InnoDB DEFAULT CHARSET=utf8mb3 COLLATE=utf8mb3_general_ci COMMENT='Catalog Product Link Attribute Table'; |
|
/*!40101 SET character_set_client = @saved_cs_client */; |
|
|
|
-- |
|
-- Table structure for table `catalog_product_link_attribute_decimal` |
|
-- |
|
|
|
DROP TABLE IF EXISTS `catalog_product_link_attribute_decimal`; |
|
/*!40101 SET @saved_cs_client = @@character_set_client */; |
|
/*!40101 SET character_set_client = utf8 */; |
|
CREATE TABLE `catalog_product_link_attribute_decimal` ( |
|
`value_id` int(10) unsigned NOT NULL AUTO_INCREMENT COMMENT 'Value ID', |
|
`product_link_attribute_id` smallint(5) unsigned DEFAULT NULL COMMENT 'Product Link Attribute ID', |
|
`link_id` int(10) unsigned NOT NULL COMMENT 'Link ID', |
|
`value` decimal(20,6) NOT NULL DEFAULT 0.000000 COMMENT 'Value', |
|
PRIMARY KEY (`value_id`), |
|
UNIQUE KEY `CAT_PRD_LNK_ATTR_DEC_PRD_LNK_ATTR_ID_LNK_ID` (`product_link_attribute_id`,`link_id`), |
|
KEY `CATALOG_PRODUCT_LINK_ATTRIBUTE_DECIMAL_LINK_ID` (`link_id`), |
|
CONSTRAINT `CAT_PRD_LNK_ATTR_DEC_LNK_ID_CAT_PRD_LNK_LNK_ID` FOREIGN KEY (`link_id`) REFERENCES `catalog_product_link` (`link_id`) ON DELETE CASCADE, |
|
CONSTRAINT `FK_AB2EFA9A14F7BCF1D5400056203D14B6` FOREIGN KEY (`product_link_attribute_id`) REFERENCES `catalog_product_link_attribute` (`product_link_attribute_id`) ON DELETE CASCADE |
|
) ENGINE=InnoDB DEFAULT CHARSET=utf8mb3 COLLATE=utf8mb3_general_ci COMMENT='Catalog Product Link Decimal Attribute Table'; |
|
/*!40101 SET character_set_client = @saved_cs_client */; |
|
|
|
-- |
|
-- Table structure for table `catalog_product_link_attribute_int` |
|
-- |
|
|
|
DROP TABLE IF EXISTS `catalog_product_link_attribute_int`; |
|
/*!40101 SET @saved_cs_client = @@character_set_client */; |
|
/*!40101 SET character_set_client = utf8 */; |
|
CREATE TABLE `catalog_product_link_attribute_int` ( |
|
`value_id` int(10) unsigned NOT NULL AUTO_INCREMENT COMMENT 'Value ID', |
|
`product_link_attribute_id` smallint(5) unsigned DEFAULT NULL COMMENT 'Product Link Attribute ID', |
|
`link_id` int(10) unsigned NOT NULL COMMENT 'Link ID', |
|
`value` int(11) NOT NULL DEFAULT 0 COMMENT 'Value', |
|
PRIMARY KEY (`value_id`), |
|
UNIQUE KEY `CAT_PRD_LNK_ATTR_INT_PRD_LNK_ATTR_ID_LNK_ID` (`product_link_attribute_id`,`link_id`), |
|
KEY `CATALOG_PRODUCT_LINK_ATTRIBUTE_INT_LINK_ID` (`link_id`), |
|
CONSTRAINT `CAT_PRD_LNK_ATTR_INT_LNK_ID_CAT_PRD_LNK_LNK_ID` FOREIGN KEY (`link_id`) REFERENCES `catalog_product_link` (`link_id`) ON DELETE CASCADE, |
|
CONSTRAINT `FK_D6D878F8BA2A4282F8DDED7E6E3DE35C` FOREIGN KEY (`product_link_attribute_id`) REFERENCES `catalog_product_link_attribute` (`product_link_attribute_id`) ON DELETE CASCADE |
|
) ENGINE=InnoDB DEFAULT CHARSET=utf8mb3 COLLATE=utf8mb3_general_ci COMMENT='Catalog Product Link Integer Attribute Table'; |
|
/*!40101 SET character_set_client = @saved_cs_client */; |
|
|
|
-- |
|
-- Table structure for table `catalog_product_link_attribute_varchar` |
|
-- |
|
|
|
DROP TABLE IF EXISTS `catalog_product_link_attribute_varchar`; |
|
/*!40101 SET @saved_cs_client = @@character_set_client */; |
|
/*!40101 SET character_set_client = utf8 */; |
|
CREATE TABLE `catalog_product_link_attribute_varchar` ( |
|
`value_id` int(10) unsigned NOT NULL AUTO_INCREMENT COMMENT 'Value ID', |
|
`product_link_attribute_id` smallint(5) unsigned NOT NULL DEFAULT 0 COMMENT 'Product Link Attribute ID', |
|
`link_id` int(10) unsigned NOT NULL COMMENT 'Link ID', |
|
`value` varchar(255) DEFAULT NULL COMMENT 'Value', |
|
PRIMARY KEY (`value_id`), |
|
UNIQUE KEY `CAT_PRD_LNK_ATTR_VCHR_PRD_LNK_ATTR_ID_LNK_ID` (`product_link_attribute_id`,`link_id`), |
|
KEY `CATALOG_PRODUCT_LINK_ATTRIBUTE_VARCHAR_LINK_ID` (`link_id`), |
|
CONSTRAINT `CAT_PRD_LNK_ATTR_VCHR_LNK_ID_CAT_PRD_LNK_LNK_ID` FOREIGN KEY (`link_id`) REFERENCES `catalog_product_link` (`link_id`) ON DELETE CASCADE, |
|
CONSTRAINT `FK_DEE9C4DA61CFCC01DFCF50F0D79CEA51` FOREIGN KEY (`product_link_attribute_id`) REFERENCES `catalog_product_link_attribute` (`product_link_attribute_id`) ON DELETE CASCADE |
|
) ENGINE=InnoDB DEFAULT CHARSET=utf8mb3 COLLATE=utf8mb3_general_ci COMMENT='Catalog Product Link Varchar Attribute Table'; |
|
/*!40101 SET character_set_client = @saved_cs_client */; |
|
|
|
-- |
|
-- Table structure for table `catalog_product_link_type` |
|
-- |
|
|
|
DROP TABLE IF EXISTS `catalog_product_link_type`; |
|
/*!40101 SET @saved_cs_client = @@character_set_client */; |
|
/*!40101 SET character_set_client = utf8 */; |
|
CREATE TABLE `catalog_product_link_type` ( |
|
`link_type_id` smallint(5) unsigned NOT NULL AUTO_INCREMENT COMMENT 'Link Type ID', |
|
`code` varchar(32) DEFAULT NULL COMMENT 'Code', |
|
PRIMARY KEY (`link_type_id`) |
|
) ENGINE=InnoDB DEFAULT CHARSET=utf8mb3 COLLATE=utf8mb3_general_ci COMMENT='Catalog Product Link Type Table'; |
|
/*!40101 SET character_set_client = @saved_cs_client */; |
|
|
|
-- |
|
-- Table structure for table `catalog_product_option` |
|
-- |
|
|
|
DROP TABLE IF EXISTS `catalog_product_option`; |
|
/*!40101 SET @saved_cs_client = @@character_set_client */; |
|
/*!40101 SET character_set_client = utf8 */; |
|
CREATE TABLE `catalog_product_option` ( |
|
`option_id` int(10) unsigned NOT NULL AUTO_INCREMENT COMMENT 'Option ID', |
|
`product_id` int(10) unsigned NOT NULL DEFAULT 0 COMMENT 'Product ID', |
|
`type` varchar(50) DEFAULT NULL COMMENT 'Type', |
|
`is_require` smallint(6) NOT NULL DEFAULT 1 COMMENT 'Is Required', |
|
`sku` varchar(64) DEFAULT NULL COMMENT 'SKU', |
|
`max_characters` int(10) unsigned DEFAULT NULL COMMENT 'Max Characters', |
|
`file_extension` varchar(50) DEFAULT NULL COMMENT 'File Extension', |
|
`image_size_x` smallint(5) unsigned DEFAULT NULL COMMENT 'Image Size X', |
|
`image_size_y` smallint(5) unsigned DEFAULT NULL COMMENT 'Image Size Y', |
|
`sort_order` int(10) unsigned NOT NULL DEFAULT 0 COMMENT 'Sort Order', |
|
PRIMARY KEY (`option_id`), |
|
KEY `CATALOG_PRODUCT_OPTION_PRODUCT_ID` (`product_id`), |
|
CONSTRAINT `CATALOG_PRODUCT_OPTION_PRODUCT_ID_CATALOG_PRODUCT_ENTITY_ROW_ID` FOREIGN KEY (`product_id`) REFERENCES `catalog_product_entity` (`row_id`) ON DELETE CASCADE |
|
) ENGINE=InnoDB DEFAULT CHARSET=utf8mb3 COLLATE=utf8mb3_general_ci COMMENT='Catalog Product Option Table'; |
|
/*!40101 SET character_set_client = @saved_cs_client */; |
|
|
|
-- |
|
-- Table structure for table `catalog_product_option_price` |
|
-- |
|
|
|
DROP TABLE IF EXISTS `catalog_product_option_price`; |
|
/*!40101 SET @saved_cs_client = @@character_set_client */; |
|
/*!40101 SET character_set_client = utf8 */; |
|
CREATE TABLE `catalog_product_option_price` ( |
|
`option_price_id` int(10) unsigned NOT NULL AUTO_INCREMENT COMMENT 'Option Price ID', |
|
`option_id` int(10) unsigned NOT NULL DEFAULT 0 COMMENT 'Option ID', |
|
`store_id` smallint(5) unsigned NOT NULL DEFAULT 0 COMMENT 'Store ID', |
|
`price` decimal(20,6) NOT NULL DEFAULT 0.000000 COMMENT 'Price', |
|
`price_type` varchar(7) NOT NULL DEFAULT 'fixed' COMMENT 'Price Type', |
|
PRIMARY KEY (`option_price_id`), |
|
UNIQUE KEY `CATALOG_PRODUCT_OPTION_PRICE_OPTION_ID_STORE_ID` (`option_id`,`store_id`), |
|
KEY `CATALOG_PRODUCT_OPTION_PRICE_STORE_ID` (`store_id`), |
|
CONSTRAINT `CATALOG_PRODUCT_OPTION_PRICE_STORE_ID_STORE_STORE_ID` FOREIGN KEY (`store_id`) REFERENCES `store` (`store_id`) ON DELETE CASCADE, |
|
CONSTRAINT `CAT_PRD_OPT_PRICE_OPT_ID_CAT_PRD_OPT_OPT_ID` FOREIGN KEY (`option_id`) REFERENCES `catalog_product_option` (`option_id`) ON DELETE CASCADE |
|
) ENGINE=InnoDB DEFAULT CHARSET=utf8mb3 COLLATE=utf8mb3_general_ci COMMENT='Catalog Product Option Price Table'; |
|
/*!40101 SET character_set_client = @saved_cs_client */; |
|
|
|
-- |
|
-- Table structure for table `catalog_product_option_title` |
|
-- |
|
|
|
DROP TABLE IF EXISTS `catalog_product_option_title`; |
|
/*!40101 SET @saved_cs_client = @@character_set_client */; |
|
/*!40101 SET character_set_client = utf8 */; |
|
CREATE TABLE `catalog_product_option_title` ( |
|
`option_title_id` int(10) unsigned NOT NULL AUTO_INCREMENT COMMENT 'Option Title ID', |
|
`option_id` int(10) unsigned NOT NULL DEFAULT 0 COMMENT 'Option ID', |
|
`store_id` smallint(5) unsigned NOT NULL DEFAULT 0 COMMENT 'Store ID', |
|
`title` varchar(255) DEFAULT NULL COMMENT 'Title', |
|
PRIMARY KEY (`option_title_id`), |
|
UNIQUE KEY `CATALOG_PRODUCT_OPTION_TITLE_OPTION_ID_STORE_ID` (`option_id`,`store_id`), |
|
KEY `CATALOG_PRODUCT_OPTION_TITLE_STORE_ID` (`store_id`), |
|
CONSTRAINT `CATALOG_PRODUCT_OPTION_TITLE_STORE_ID_STORE_STORE_ID` FOREIGN KEY (`store_id`) REFERENCES `store` (`store_id`) ON DELETE CASCADE, |
|
CONSTRAINT `CAT_PRD_OPT_TTL_OPT_ID_CAT_PRD_OPT_OPT_ID` FOREIGN KEY (`option_id`) REFERENCES `catalog_product_option` (`option_id`) ON DELETE CASCADE |
|
) ENGINE=InnoDB DEFAULT CHARSET=utf8mb3 COLLATE=utf8mb3_general_ci COMMENT='Catalog Product Option Title Table'; |
|
/*!40101 SET character_set_client = @saved_cs_client */; |
|
|
|
-- |
|
-- Table structure for table `catalog_product_option_type_price` |
|
-- |
|
|
|
DROP TABLE IF EXISTS `catalog_product_option_type_price`; |
|
/*!40101 SET @saved_cs_client = @@character_set_client */; |
|
/*!40101 SET character_set_client = utf8 */; |
|
CREATE TABLE `catalog_product_option_type_price` ( |
|
`option_type_price_id` int(10) unsigned NOT NULL AUTO_INCREMENT COMMENT 'Option Type Price ID', |
|
`option_type_id` int(10) unsigned NOT NULL DEFAULT 0 COMMENT 'Option Type ID', |
|
`store_id` smallint(5) unsigned NOT NULL DEFAULT 0 COMMENT 'Store ID', |
|
`price` decimal(20,6) NOT NULL DEFAULT 0.000000 COMMENT 'Price', |
|
`price_type` varchar(7) NOT NULL DEFAULT 'fixed' COMMENT 'Price Type', |
|
PRIMARY KEY (`option_type_price_id`), |
|
UNIQUE KEY `CATALOG_PRODUCT_OPTION_TYPE_PRICE_OPTION_TYPE_ID_STORE_ID` (`option_type_id`,`store_id`), |
|
KEY `CATALOG_PRODUCT_OPTION_TYPE_PRICE_STORE_ID` (`store_id`), |
|
CONSTRAINT `CATALOG_PRODUCT_OPTION_TYPE_PRICE_STORE_ID_STORE_STORE_ID` FOREIGN KEY (`store_id`) REFERENCES `store` (`store_id`) ON DELETE CASCADE, |
|
CONSTRAINT `FK_B523E3378E8602F376CC415825576B7F` FOREIGN KEY (`option_type_id`) REFERENCES `catalog_product_option_type_value` (`option_type_id`) ON DELETE CASCADE |
|
) ENGINE=InnoDB DEFAULT CHARSET=utf8mb3 COLLATE=utf8mb3_general_ci COMMENT='Catalog Product Option Type Price Table'; |
|
/*!40101 SET character_set_client = @saved_cs_client */; |
|
|
|
-- |
|
-- Table structure for table `catalog_product_option_type_title` |
|
-- |
|
|
|
DROP TABLE IF EXISTS `catalog_product_option_type_title`; |
|
/*!40101 SET @saved_cs_client = @@character_set_client */; |
|
/*!40101 SET character_set_client = utf8 */; |
|
CREATE TABLE `catalog_product_option_type_title` ( |
|
`option_type_title_id` int(10) unsigned NOT NULL AUTO_INCREMENT COMMENT 'Option Type Title ID', |
|
`option_type_id` int(10) unsigned NOT NULL DEFAULT 0 COMMENT 'Option Type ID', |
|
`store_id` smallint(5) unsigned NOT NULL DEFAULT 0 COMMENT 'Store ID', |
|
`title` varchar(255) DEFAULT NULL COMMENT 'Title', |
|
PRIMARY KEY (`option_type_title_id`), |
|
UNIQUE KEY `CATALOG_PRODUCT_OPTION_TYPE_TITLE_OPTION_TYPE_ID_STORE_ID` (`option_type_id`,`store_id`), |
|
KEY `CATALOG_PRODUCT_OPTION_TYPE_TITLE_STORE_ID` (`store_id`), |
|
CONSTRAINT `CATALOG_PRODUCT_OPTION_TYPE_TITLE_STORE_ID_STORE_STORE_ID` FOREIGN KEY (`store_id`) REFERENCES `store` (`store_id`) ON DELETE CASCADE, |
|
CONSTRAINT `FK_C085B9CF2C2A302E8043FDEA1937D6A2` FOREIGN KEY (`option_type_id`) REFERENCES `catalog_product_option_type_value` (`option_type_id`) ON DELETE CASCADE |
|
) ENGINE=InnoDB DEFAULT CHARSET=utf8mb3 COLLATE=utf8mb3_general_ci COMMENT='Catalog Product Option Type Title Table'; |
|
/*!40101 SET character_set_client = @saved_cs_client */; |
|
|
|
-- |
|
-- Table structure for table `catalog_product_option_type_value` |
|
-- |
|
|
|
DROP TABLE IF EXISTS `catalog_product_option_type_value`; |
|
/*!40101 SET @saved_cs_client = @@character_set_client */; |
|
/*!40101 SET character_set_client = utf8 */; |
|
CREATE TABLE `catalog_product_option_type_value` ( |
|
`option_type_id` int(10) unsigned NOT NULL AUTO_INCREMENT COMMENT 'Option Type ID', |
|
`option_id` int(10) unsigned NOT NULL DEFAULT 0 COMMENT 'Option ID', |
|
`sku` varchar(64) DEFAULT NULL COMMENT 'SKU', |
|
`sort_order` int(10) unsigned NOT NULL DEFAULT 0 COMMENT 'Sort Order', |
|
PRIMARY KEY (`option_type_id`), |
|
KEY `CATALOG_PRODUCT_OPTION_TYPE_VALUE_OPTION_ID` (`option_id`), |
|
CONSTRAINT `CAT_PRD_OPT_TYPE_VAL_OPT_ID_CAT_PRD_OPT_OPT_ID` FOREIGN KEY (`option_id`) REFERENCES `catalog_product_option` (`option_id`) ON DELETE CASCADE |
|
) ENGINE=InnoDB DEFAULT CHARSET=utf8mb3 COLLATE=utf8mb3_general_ci COMMENT='Catalog Product Option Type Value Table'; |
|
/*!40101 SET character_set_client = @saved_cs_client */; |
|
|
|
-- |
|
-- Table structure for table `catalog_product_relation` |
|
-- |
|
|
|
DROP TABLE IF EXISTS `catalog_product_relation`; |
|
/*!40101 SET @saved_cs_client = @@character_set_client */; |
|
/*!40101 SET character_set_client = utf8 */; |
|
CREATE TABLE `catalog_product_relation` ( |
|
`parent_id` int(10) unsigned NOT NULL COMMENT 'Parent ID', |
|
`child_id` int(10) unsigned NOT NULL COMMENT 'Child ID', |
|
PRIMARY KEY (`parent_id`,`child_id`), |
|
KEY `CATALOG_PRODUCT_RELATION_CHILD_ID` (`child_id`), |
|
CONSTRAINT `CATALOG_PRODUCT_RELATION_PARENT_ID_CATALOG_PRODUCT_ENTITY_ROW_ID` FOREIGN KEY (`parent_id`) REFERENCES `catalog_product_entity` (`row_id`) ON DELETE CASCADE, |
|
CONSTRAINT `CAT_PRD_RELATION_CHILD_ID_SEQUENCE_PRD_SEQUENCE_VAL` FOREIGN KEY (`child_id`) REFERENCES `sequence_product` (`sequence_value`) ON DELETE CASCADE |
|
) ENGINE=InnoDB DEFAULT CHARSET=utf8mb3 COLLATE=utf8mb3_general_ci COMMENT='Catalog Product Relation Table'; |
|
/*!40101 SET character_set_client = @saved_cs_client */; |
|
|
|
-- |
|
-- Table structure for table `catalog_product_super_attribute` |
|
-- |
|
|
|
DROP TABLE IF EXISTS `catalog_product_super_attribute`; |
|
/*!40101 SET @saved_cs_client = @@character_set_client */; |
|
/*!40101 SET character_set_client = utf8 */; |
|
CREATE TABLE `catalog_product_super_attribute` ( |
|
`product_super_attribute_id` int(10) unsigned NOT NULL AUTO_INCREMENT COMMENT 'Product Super Attribute ID', |
|
`product_id` int(10) unsigned NOT NULL DEFAULT 0 COMMENT 'Product ID', |
|
`attribute_id` smallint(5) unsigned NOT NULL DEFAULT 0 COMMENT 'Attribute ID', |
|
`position` smallint(5) unsigned NOT NULL DEFAULT 0 COMMENT 'Position', |
|
PRIMARY KEY (`product_super_attribute_id`), |
|
UNIQUE KEY `CATALOG_PRODUCT_SUPER_ATTRIBUTE_PRODUCT_ID_ATTRIBUTE_ID` (`product_id`,`attribute_id`), |
|
CONSTRAINT `CAT_PRD_SPR_ATTR_PRD_ID_CAT_PRD_ENTT_ROW_ID` FOREIGN KEY (`product_id`) REFERENCES `catalog_product_entity` (`row_id`) ON DELETE CASCADE |
|
) ENGINE=InnoDB DEFAULT CHARSET=utf8mb3 COLLATE=utf8mb3_general_ci COMMENT='Catalog Product Super Attribute Table'; |
|
/*!40101 SET character_set_client = @saved_cs_client */; |
|
|
|
-- |
|
-- Table structure for table `catalog_product_super_attribute_label` |
|
-- |
|
|
|
DROP TABLE IF EXISTS `catalog_product_super_attribute_label`; |
|
/*!40101 SET @saved_cs_client = @@character_set_client */; |
|
/*!40101 SET character_set_client = utf8 */; |
|
CREATE TABLE `catalog_product_super_attribute_label` ( |
|
`value_id` int(10) unsigned NOT NULL AUTO_INCREMENT COMMENT 'Value ID', |
|
`product_super_attribute_id` int(10) unsigned NOT NULL DEFAULT 0 COMMENT 'Product Super Attribute ID', |
|
`store_id` smallint(5) unsigned NOT NULL DEFAULT 0 COMMENT 'Store ID', |
|
`use_default` smallint(5) unsigned DEFAULT 0 COMMENT 'Use Default Value', |
|
`value` varchar(255) DEFAULT NULL COMMENT 'Value', |
|
PRIMARY KEY (`value_id`), |
|
UNIQUE KEY `CAT_PRD_SPR_ATTR_LBL_PRD_SPR_ATTR_ID_STORE_ID` (`product_super_attribute_id`,`store_id`), |
|
KEY `CATALOG_PRODUCT_SUPER_ATTRIBUTE_LABEL_STORE_ID` (`store_id`), |
|
CONSTRAINT `CATALOG_PRODUCT_SUPER_ATTRIBUTE_LABEL_STORE_ID_STORE_STORE_ID` FOREIGN KEY (`store_id`) REFERENCES `store` (`store_id`) ON DELETE CASCADE, |
|
CONSTRAINT `FK_309442281DF7784210ED82B2CC51E5D5` FOREIGN KEY (`product_super_attribute_id`) REFERENCES `catalog_product_super_attribute` (`product_super_attribute_id`) ON DELETE CASCADE |
|
) ENGINE=InnoDB DEFAULT CHARSET=utf8mb3 COLLATE=utf8mb3_general_ci COMMENT='Catalog Product Super Attribute Label Table'; |
|
/*!40101 SET character_set_client = @saved_cs_client */; |
|
|
|
-- |
|
-- Table structure for table `catalog_product_super_link` |
|
-- |
|
|
|
DROP TABLE IF EXISTS `catalog_product_super_link`; |
|
/*!40101 SET @saved_cs_client = @@character_set_client */; |
|
/*!40101 SET character_set_client = utf8 */; |
|
CREATE TABLE `catalog_product_super_link` ( |
|
`link_id` int(10) unsigned NOT NULL AUTO_INCREMENT COMMENT 'Link ID', |
|
`product_id` int(10) unsigned NOT NULL DEFAULT 0 COMMENT 'Product ID', |
|
`parent_id` int(10) unsigned NOT NULL DEFAULT 0 COMMENT 'Parent ID', |
|
PRIMARY KEY (`link_id`), |
|
UNIQUE KEY `CATALOG_PRODUCT_SUPER_LINK_PRODUCT_ID_PARENT_ID` (`product_id`,`parent_id`), |
|
KEY `CATALOG_PRODUCT_SUPER_LINK_PARENT_ID` (`parent_id`), |
|
CONSTRAINT `CAT_PRD_SPR_LNK_PARENT_ID_CAT_PRD_ENTT_ROW_ID` FOREIGN KEY (`parent_id`) REFERENCES `catalog_product_entity` (`row_id`) ON DELETE CASCADE, |
|
CONSTRAINT `CAT_PRD_SPR_LNK_PRD_ID_SEQUENCE_PRD_SEQUENCE_VAL` FOREIGN KEY (`product_id`) REFERENCES `sequence_product` (`sequence_value`) ON DELETE CASCADE |
|
) ENGINE=InnoDB DEFAULT CHARSET=utf8mb3 COLLATE=utf8mb3_general_ci COMMENT='Catalog Product Super Link Table'; |
|
/*!40101 SET character_set_client = @saved_cs_client */; |
|
/*!50003 SET @saved_cs_client = @@character_set_client */ ; |
|
/*!50003 SET @saved_cs_results = @@character_set_results */ ; |
|
/*!50003 SET @saved_col_connection = @@collation_connection */ ; |
|
/*!50003 SET character_set_client = utf8mb3 */ ; |
|
/*!50003 SET character_set_results = utf8mb3 */ ; |
|
/*!50003 SET collation_connection = utf8mb3_general_ci */ ; |
|
/*!50003 SET @saved_sql_mode = @@sql_mode */ ; |
|
/*!50003 SET sql_mode = '' */ ; |
|
DELIMITER ;; |
|
/*!50003 CREATE*/ /*!50017 DEFINER=CURRENT_USER*/ /*!50003 TRIGGER trg_catalog_product_super_link_after_insert AFTER INSERT ON catalog_product_super_link FOR EACH ROW |
|
BEGIN |
|
INSERT IGNORE INTO `catalogsearch_fulltext_cl` (`entity_id`) VALUES (NEW.`product_id`); |
|
END */;; |
|
DELIMITER ; |
|
/*!50003 SET sql_mode = @saved_sql_mode */ ; |
|
/*!50003 SET character_set_client = @saved_cs_client */ ; |
|
/*!50003 SET character_set_results = @saved_cs_results */ ; |
|
/*!50003 SET collation_connection = @saved_col_connection */ ; |
|
/*!50003 SET @saved_cs_client = @@character_set_client */ ; |
|
/*!50003 SET @saved_cs_results = @@character_set_results */ ; |
|
/*!50003 SET @saved_col_connection = @@collation_connection */ ; |
|
/*!50003 SET character_set_client = utf8mb3 */ ; |
|
/*!50003 SET character_set_results = utf8mb3 */ ; |
|
/*!50003 SET collation_connection = utf8mb3_general_ci */ ; |
|
/*!50003 SET @saved_sql_mode = @@sql_mode */ ; |
|
/*!50003 SET sql_mode = '' */ ; |
|
DELIMITER ;; |
|
/*!50003 CREATE*/ /*!50017 DEFINER=CURRENT_USER*/ /*!50003 TRIGGER trg_catalog_product_super_link_after_update AFTER UPDATE ON catalog_product_super_link FOR EACH ROW |
|
BEGIN |
|
IF (NOT(NEW.`link_id` <=> OLD.`link_id`) OR NOT(NEW.`product_id` <=> OLD.`product_id`) OR NOT(NEW.`parent_id` <=> OLD.`parent_id`)) THEN INSERT IGNORE INTO `catalogsearch_fulltext_cl` (`entity_id`) VALUES (NEW.`product_id`); END IF; |
|
END */;; |
|
DELIMITER ; |
|
/*!50003 SET sql_mode = @saved_sql_mode */ ; |
|
/*!50003 SET character_set_client = @saved_cs_client */ ; |
|
/*!50003 SET character_set_results = @saved_cs_results */ ; |
|
/*!50003 SET collation_connection = @saved_col_connection */ ; |
|
/*!50003 SET @saved_cs_client = @@character_set_client */ ; |
|
/*!50003 SET @saved_cs_results = @@character_set_results */ ; |
|
/*!50003 SET @saved_col_connection = @@collation_connection */ ; |
|
/*!50003 SET character_set_client = utf8mb3 */ ; |
|
/*!50003 SET character_set_results = utf8mb3 */ ; |
|
/*!50003 SET collation_connection = utf8mb3_general_ci */ ; |
|
/*!50003 SET @saved_sql_mode = @@sql_mode */ ; |
|
/*!50003 SET sql_mode = '' */ ; |
|
DELIMITER ;; |
|
/*!50003 CREATE*/ /*!50017 DEFINER=CURRENT_USER*/ /*!50003 TRIGGER trg_catalog_product_super_link_after_delete AFTER DELETE ON catalog_product_super_link FOR EACH ROW |
|
BEGIN |
|
INSERT IGNORE INTO `catalogsearch_fulltext_cl` (`entity_id`) VALUES (OLD.`product_id`); |
|
END */;; |
|
DELIMITER ; |
|
/*!50003 SET sql_mode = @saved_sql_mode */ ; |
|
/*!50003 SET character_set_client = @saved_cs_client */ ; |
|
/*!50003 SET character_set_results = @saved_cs_results */ ; |
|
/*!50003 SET collation_connection = @saved_col_connection */ ; |
|
|
|
-- |
|
-- Table structure for table `catalog_product_website` |
|
-- |
|
|
|
DROP TABLE IF EXISTS `catalog_product_website`; |
|
/*!40101 SET @saved_cs_client = @@character_set_client */; |
|
/*!40101 SET character_set_client = utf8 */; |
|
CREATE TABLE `catalog_product_website` ( |
|
`product_id` int(10) unsigned NOT NULL COMMENT 'Product ID', |
|
`website_id` smallint(5) unsigned NOT NULL COMMENT 'Website ID', |
|
PRIMARY KEY (`product_id`,`website_id`), |
|
KEY `CATALOG_PRODUCT_WEBSITE_WEBSITE_ID` (`website_id`), |
|
CONSTRAINT `CATALOG_PRODUCT_WEBSITE_WEBSITE_ID_STORE_WEBSITE_WEBSITE_ID` FOREIGN KEY (`website_id`) REFERENCES `store_website` (`website_id`) ON DELETE CASCADE, |
|
CONSTRAINT `CAT_PRD_WS_PRD_ID_SEQUENCE_PRD_SEQUENCE_VAL` FOREIGN KEY (`product_id`) REFERENCES `sequence_product` (`sequence_value`) ON DELETE CASCADE |
|
) ENGINE=InnoDB DEFAULT CHARSET=utf8mb3 COLLATE=utf8mb3_general_ci COMMENT='Catalog Product To Website Linkage Table'; |
|
/*!40101 SET character_set_client = @saved_cs_client */; |
|
/*!50003 SET @saved_cs_client = @@character_set_client */ ; |
|
/*!50003 SET @saved_cs_results = @@character_set_results */ ; |
|
/*!50003 SET @saved_col_connection = @@collation_connection */ ; |
|
/*!50003 SET character_set_client = utf8mb3 */ ; |
|
/*!50003 SET character_set_results = utf8mb3 */ ; |
|
/*!50003 SET collation_connection = utf8mb3_general_ci */ ; |
|
/*!50003 SET @saved_sql_mode = @@sql_mode */ ; |
|
/*!50003 SET sql_mode = '' */ ; |
|
DELIMITER ;; |
|
/*!50003 CREATE*/ /*!50017 DEFINER=CURRENT_USER*/ /*!50003 TRIGGER trg_catalog_product_website_after_insert AFTER INSERT ON catalog_product_website FOR EACH ROW |
|
BEGIN |
|
INSERT IGNORE INTO `algolia_products_cl` (`entity_id`) VALUES (NEW.`product_id`); |
|
INSERT IGNORE INTO `catalog_product_category_cl` (`entity_id`) VALUES (NEW.`product_id`); |
|
INSERT IGNORE INTO `catalog_product_price_cl` (`entity_id`) VALUES (NEW.`product_id`); |
|
INSERT IGNORE INTO `catalogsearch_fulltext_cl` (`entity_id`) VALUES (NEW.`product_id`); |
|
END */;; |
|
DELIMITER ; |
|
/*!50003 SET sql_mode = @saved_sql_mode */ ; |
|
/*!50003 SET character_set_client = @saved_cs_client */ ; |
|
/*!50003 SET character_set_results = @saved_cs_results */ ; |
|
/*!50003 SET collation_connection = @saved_col_connection */ ; |
|
/*!50003 SET @saved_cs_client = @@character_set_client */ ; |
|
/*!50003 SET @saved_cs_results = @@character_set_results */ ; |
|
/*!50003 SET @saved_col_connection = @@collation_connection */ ; |
|
/*!50003 SET character_set_client = utf8mb3 */ ; |
|
/*!50003 SET character_set_results = utf8mb3 */ ; |
|
/*!50003 SET collation_connection = utf8mb3_general_ci */ ; |
|
/*!50003 SET @saved_sql_mode = @@sql_mode */ ; |
|
/*!50003 SET sql_mode = '' */ ; |
|
DELIMITER ;; |
|
/*!50003 CREATE*/ /*!50017 DEFINER=CURRENT_USER*/ /*!50003 TRIGGER trg_catalog_product_website_after_update AFTER UPDATE ON catalog_product_website FOR EACH ROW |
|
BEGIN |
|
IF (NOT(NEW.`product_id` <=> OLD.`product_id`) OR NOT(NEW.`website_id` <=> OLD.`website_id`)) THEN INSERT IGNORE INTO `algolia_products_cl` (`entity_id`) VALUES (NEW.`product_id`); END IF; |
|
IF (NOT(NEW.`product_id` <=> OLD.`product_id`) OR NOT(NEW.`website_id` <=> OLD.`website_id`)) THEN INSERT IGNORE INTO `catalog_product_category_cl` (`entity_id`) VALUES (NEW.`product_id`); END IF; |
|
IF (NOT(NEW.`product_id` <=> OLD.`product_id`) OR NOT(NEW.`website_id` <=> OLD.`website_id`)) THEN INSERT IGNORE INTO `catalog_product_price_cl` (`entity_id`) VALUES (NEW.`product_id`); END IF; |
|
IF (NOT(NEW.`product_id` <=> OLD.`product_id`) OR NOT(NEW.`website_id` <=> OLD.`website_id`)) THEN INSERT IGNORE INTO `catalogsearch_fulltext_cl` (`entity_id`) VALUES (NEW.`product_id`); END IF; |
|
END */;; |
|
DELIMITER ; |
|
/*!50003 SET sql_mode = @saved_sql_mode */ ; |
|
/*!50003 SET character_set_client = @saved_cs_client */ ; |
|
/*!50003 SET character_set_results = @saved_cs_results */ ; |
|
/*!50003 SET collation_connection = @saved_col_connection */ ; |
|
/*!50003 SET @saved_cs_client = @@character_set_client */ ; |
|
/*!50003 SET @saved_cs_results = @@character_set_results */ ; |
|
/*!50003 SET @saved_col_connection = @@collation_connection */ ; |
|
/*!50003 SET character_set_client = utf8mb3 */ ; |
|
/*!50003 SET character_set_results = utf8mb3 */ ; |
|
/*!50003 SET collation_connection = utf8mb3_general_ci */ ; |
|
/*!50003 SET @saved_sql_mode = @@sql_mode */ ; |
|
/*!50003 SET sql_mode = '' */ ; |
|
DELIMITER ;; |
|
/*!50003 CREATE*/ /*!50017 DEFINER=CURRENT_USER*/ /*!50003 TRIGGER trg_catalog_product_website_after_delete AFTER DELETE ON catalog_product_website FOR EACH ROW |
|
BEGIN |
|
INSERT IGNORE INTO `algolia_products_cl` (`entity_id`) VALUES (OLD.`product_id`); |
|
INSERT IGNORE INTO `catalog_product_category_cl` (`entity_id`) VALUES (OLD.`product_id`); |
|
INSERT IGNORE INTO `catalog_product_price_cl` (`entity_id`) VALUES (OLD.`product_id`); |
|
INSERT IGNORE INTO `catalogsearch_fulltext_cl` (`entity_id`) VALUES (OLD.`product_id`); |
|
END */;; |
|
DELIMITER ; |
|
/*!50003 SET sql_mode = @saved_sql_mode */ ; |
|
/*!50003 SET character_set_client = @saved_cs_client */ ; |
|
/*!50003 SET character_set_results = @saved_cs_results */ ; |
|
/*!50003 SET collation_connection = @saved_col_connection */ ; |
|
|
|
-- |
|
-- Table structure for table `catalog_url_rewrite_product_category` |
|
-- |
|
|
|
DROP TABLE IF EXISTS `catalog_url_rewrite_product_category`; |
|
/*!40101 SET @saved_cs_client = @@character_set_client */; |
|
/*!40101 SET character_set_client = utf8 */; |
|
CREATE TABLE `catalog_url_rewrite_product_category` ( |
|
`url_rewrite_id` int(10) unsigned NOT NULL COMMENT 'url_rewrite_id', |
|
`category_id` int(10) unsigned NOT NULL COMMENT 'category_id', |
|
`product_id` int(10) unsigned NOT NULL COMMENT 'product_id', |
|
PRIMARY KEY (`url_rewrite_id`), |
|
KEY `CAT_URL_REWRITE_PRD_CTGR_PRD_ID_SEQUENCE_PRD_SEQUENCE_VAL` (`product_id`), |
|
KEY `CATALOG_URL_REWRITE_PRODUCT_CATEGORY_CATEGORY_ID_PRODUCT_ID` (`category_id`,`product_id`), |
|
CONSTRAINT `CAT_URL_REWRITE_PRD_CTGR_CTGR_ID_SEQUENCE_CAT_CTGR_SEQUENCE_VAL` FOREIGN KEY (`category_id`) REFERENCES `sequence_catalog_category` (`sequence_value`) ON DELETE CASCADE, |
|
CONSTRAINT `CAT_URL_REWRITE_PRD_CTGR_PRD_ID_SEQUENCE_PRD_SEQUENCE_VAL` FOREIGN KEY (`product_id`) REFERENCES `sequence_product` (`sequence_value`) ON DELETE CASCADE, |
|
CONSTRAINT `FK_BB79E64705D7F17FE181F23144528FC8` FOREIGN KEY (`url_rewrite_id`) REFERENCES `url_rewrite` (`url_rewrite_id`) ON DELETE CASCADE |
|
) ENGINE=InnoDB DEFAULT CHARSET=utf8mb3 COLLATE=utf8mb3_general_ci COMMENT='url_rewrite_relation'; |
|
/*!40101 SET character_set_client = @saved_cs_client */; |
|
|
|
-- |
|
-- Table structure for table `sequence_product` |
|
-- |
|
|
|
DROP TABLE IF EXISTS `sequence_product`; |
|
/*!40101 SET @saved_cs_client = @@character_set_client */; |
|
/*!40101 SET character_set_client = utf8 */; |
|
CREATE TABLE `sequence_product` ( |
|
`sequence_value` int(10) unsigned NOT NULL AUTO_INCREMENT, |
|
PRIMARY KEY (`sequence_value`) |
|
) ENGINE=InnoDB DEFAULT CHARSET=utf8mb3 COLLATE=utf8mb3_general_ci; |
|
/*!40101 SET character_set_client = @saved_cs_client */; |
|
/*!40103 SET TIME_ZONE=@OLD_TIME_ZONE */; |
|
|
|
/*!40101 SET SQL_MODE=@OLD_SQL_MODE */; |
|
/*!40014 SET FOREIGN_KEY_CHECKS=@OLD_FOREIGN_KEY_CHECKS */; |
|
/*!40014 SET UNIQUE_CHECKS=@OLD_UNIQUE_CHECKS */; |
|
/*!40101 SET CHARACTER_SET_CLIENT=@OLD_CHARACTER_SET_CLIENT */; |
|
/*!40101 SET CHARACTER_SET_RESULTS=@OLD_CHARACTER_SET_RESULTS */; |
|
/*!40101 SET COLLATION_CONNECTION=@OLD_COLLATION_CONNECTION */; |
|
/*!40111 SET SQL_NOTES=@OLD_SQL_NOTES */; |
|
|
|
-- Dump completed on 2024-10-09 11:02:47 |
|
-- MariaDB dump 10.19 Distrib 10.5.21-MariaDB, for debian-linux-gnu (aarch64) |
|
-- |
|
-- Host: db Database: magento |
|
-- ------------------------------------------------------ |
|
-- Server version 10.6.16-MariaDB-1:10.6.16+maria~ubu2004 |
|
|
|
/*!40101 SET @OLD_CHARACTER_SET_CLIENT=@@CHARACTER_SET_CLIENT */; |
|
/*!40101 SET @OLD_CHARACTER_SET_RESULTS=@@CHARACTER_SET_RESULTS */; |
|
/*!40101 SET @OLD_COLLATION_CONNECTION=@@COLLATION_CONNECTION */; |
|
/*!40101 SET NAMES utf8mb4 */; |
|
/*!40103 SET @OLD_TIME_ZONE=@@TIME_ZONE */; |
|
/*!40103 SET TIME_ZONE='+00:00' */; |
|
/*!40014 SET @OLD_UNIQUE_CHECKS=@@UNIQUE_CHECKS, UNIQUE_CHECKS=0 */; |
|
/*!40014 SET @OLD_FOREIGN_KEY_CHECKS=@@FOREIGN_KEY_CHECKS, FOREIGN_KEY_CHECKS=0 */; |
|
/*!40101 SET @OLD_SQL_MODE=@@SQL_MODE, SQL_MODE='NO_AUTO_VALUE_ON_ZERO' */; |
|
/*!40111 SET @OLD_SQL_NOTES=@@SQL_NOTES, SQL_NOTES=0 */; |
|
/*!40103 SET TIME_ZONE=@OLD_TIME_ZONE */; |
|
|
|
/*!40101 SET SQL_MODE=@OLD_SQL_MODE */; |
|
/*!40014 SET FOREIGN_KEY_CHECKS=@OLD_FOREIGN_KEY_CHECKS */; |
|
/*!40014 SET UNIQUE_CHECKS=@OLD_UNIQUE_CHECKS */; |
|
/*!40101 SET CHARACTER_SET_CLIENT=@OLD_CHARACTER_SET_CLIENT */; |
|
/*!40101 SET CHARACTER_SET_RESULTS=@OLD_CHARACTER_SET_RESULTS */; |
|
/*!40101 SET COLLATION_CONNECTION=@OLD_COLLATION_CONNECTION */; |
|
/*!40111 SET SQL_NOTES=@OLD_SQL_NOTES */; |
|
|
|
-- Dump completed on 2024-10-09 11:02:47 |
|
-- MariaDB dump 10.19 Distrib 10.5.21-MariaDB, for debian-linux-gnu (aarch64) |
|
-- |
|
-- Host: db Database: magento |
|
-- ------------------------------------------------------ |
|
-- Server version 10.6.16-MariaDB-1:10.6.16+maria~ubu2004 |
|
|
|
/*!40101 SET @OLD_CHARACTER_SET_CLIENT=@@CHARACTER_SET_CLIENT */; |
|
/*!40101 SET @OLD_CHARACTER_SET_RESULTS=@@CHARACTER_SET_RESULTS */; |
|
/*!40101 SET @OLD_COLLATION_CONNECTION=@@COLLATION_CONNECTION */; |
|
/*!40101 SET NAMES utf8mb4 */; |
|
/*!40103 SET @OLD_TIME_ZONE=@@TIME_ZONE */; |
|
/*!40103 SET TIME_ZONE='+00:00' */; |
|
/*!40014 SET @OLD_UNIQUE_CHECKS=@@UNIQUE_CHECKS, UNIQUE_CHECKS=0 */; |
|
/*!40014 SET @OLD_FOREIGN_KEY_CHECKS=@@FOREIGN_KEY_CHECKS, FOREIGN_KEY_CHECKS=0 */; |
|
/*!40101 SET @OLD_SQL_MODE=@@SQL_MODE, SQL_MODE='NO_AUTO_VALUE_ON_ZERO' */; |
|
/*!40111 SET @OLD_SQL_NOTES=@@SQL_NOTES, SQL_NOTES=0 */; |
|
|
|
-- |
|
-- Table structure for table `cataloginventory_stock_item` |
|
-- |
|
|
|
DROP TABLE IF EXISTS `cataloginventory_stock_item`; |
|
/*!40101 SET @saved_cs_client = @@character_set_client */; |
|
/*!40101 SET character_set_client = utf8 */; |
|
CREATE TABLE `cataloginventory_stock_item` ( |
|
`item_id` int(10) unsigned NOT NULL AUTO_INCREMENT COMMENT 'Item ID', |
|
`product_id` int(10) unsigned NOT NULL DEFAULT 0 COMMENT 'Product ID', |
|
`stock_id` smallint(5) unsigned NOT NULL DEFAULT 0 COMMENT 'Stock ID', |
|
`qty` decimal(12,4) DEFAULT NULL COMMENT 'Qty', |
|
`min_qty` decimal(12,4) NOT NULL DEFAULT 0.0000 COMMENT 'Min Qty', |
|
`use_config_min_qty` smallint(5) unsigned NOT NULL DEFAULT 1 COMMENT 'Use Config Min Qty', |
|
`is_qty_decimal` smallint(5) unsigned NOT NULL DEFAULT 0 COMMENT 'Is Qty Decimal', |
|
`backorders` smallint(5) unsigned NOT NULL DEFAULT 0 COMMENT 'Backorders', |
|
`use_config_backorders` smallint(5) unsigned NOT NULL DEFAULT 1 COMMENT 'Use Config Backorders', |
|
`min_sale_qty` decimal(12,4) NOT NULL DEFAULT 1.0000 COMMENT 'Min Sale Qty', |
|
`use_config_min_sale_qty` smallint(5) unsigned NOT NULL DEFAULT 1 COMMENT 'Use Config Min Sale Qty', |
|
`max_sale_qty` decimal(12,4) NOT NULL DEFAULT 0.0000 COMMENT 'Max Sale Qty', |
|
`use_config_max_sale_qty` smallint(5) unsigned NOT NULL DEFAULT 1 COMMENT 'Use Config Max Sale Qty', |
|
`is_in_stock` smallint(5) unsigned NOT NULL DEFAULT 0 COMMENT 'Is In Stock', |
|
`low_stock_date` timestamp NULL DEFAULT NULL COMMENT 'Low Stock Date', |
|
`notify_stock_qty` decimal(12,4) DEFAULT NULL COMMENT 'Notify Stock Qty', |
|
`use_config_notify_stock_qty` smallint(5) unsigned NOT NULL DEFAULT 1 COMMENT 'Use Config Notify Stock Qty', |
|
`manage_stock` smallint(5) unsigned NOT NULL DEFAULT 0 COMMENT 'Manage Stock', |
|
`use_config_manage_stock` smallint(5) unsigned NOT NULL DEFAULT 1 COMMENT 'Use Config Manage Stock', |
|
`stock_status_changed_auto` smallint(5) unsigned NOT NULL DEFAULT 0 COMMENT 'Stock Status Changed Automatically', |
|
`use_config_qty_increments` smallint(5) unsigned NOT NULL DEFAULT 1 COMMENT 'Use Config Qty Increments', |
|
`qty_increments` decimal(12,4) NOT NULL DEFAULT 0.0000 COMMENT 'Qty Increments', |
|
`use_config_enable_qty_inc` smallint(5) unsigned NOT NULL DEFAULT 1 COMMENT 'Use Config Enable Qty Increments', |
|
`enable_qty_increments` smallint(5) unsigned NOT NULL DEFAULT 0 COMMENT 'Enable Qty Increments', |
|
`is_decimal_divided` smallint(5) unsigned NOT NULL DEFAULT 0 COMMENT 'Is Divided into Multiple Boxes for Shipping', |
|
`website_id` smallint(5) unsigned NOT NULL DEFAULT 0 COMMENT 'Website ID', |
|
`deferred_stock_update` smallint(5) unsigned NOT NULL DEFAULT 0 COMMENT 'Use deferred Stock update', |
|
`use_config_deferred_stock_update` smallint(5) unsigned NOT NULL DEFAULT 1 COMMENT 'Use configuration settings for deferred Stock update', |
|
`ukey` text DEFAULT NULL COMMENT 'ukey', |
|
PRIMARY KEY (`item_id`), |
|
UNIQUE KEY `CATALOGINVENTORY_STOCK_ITEM_PRODUCT_ID_STOCK_ID` (`product_id`,`stock_id`), |
|
KEY `CATALOGINVENTORY_STOCK_ITEM_WEBSITE_ID` (`website_id`), |
|
KEY `CATALOGINVENTORY_STOCK_ITEM_WEBSITE_ID_PRODUCT_ID` (`website_id`,`product_id`), |
|
KEY `CATALOGINVENTORY_STOCK_ITEM_STOCK_ID` (`stock_id`), |
|
CONSTRAINT `CATINV_STOCK_ITEM_PRD_ID_SEQUENCE_PRD_SEQUENCE_VAL` FOREIGN KEY (`product_id`) REFERENCES `sequence_product` (`sequence_value`) ON DELETE CASCADE, |
|
CONSTRAINT `CATINV_STOCK_ITEM_STOCK_ID_CATINV_STOCK_STOCK_ID` FOREIGN KEY (`stock_id`) REFERENCES `cataloginventory_stock` (`stock_id`) ON DELETE CASCADE |
|
) ENGINE=InnoDB DEFAULT CHARSET=utf8mb3 COLLATE=utf8mb3_general_ci COMMENT='Cataloginventory Stock Item'; |
|
/*!40101 SET character_set_client = @saved_cs_client */; |
|
/*!50003 SET @saved_cs_client = @@character_set_client */ ; |
|
/*!50003 SET @saved_cs_results = @@character_set_results */ ; |
|
/*!50003 SET @saved_col_connection = @@collation_connection */ ; |
|
/*!50003 SET character_set_client = utf8mb3 */ ; |
|
/*!50003 SET character_set_results = utf8mb3 */ ; |
|
/*!50003 SET collation_connection = utf8mb3_general_ci */ ; |
|
/*!50003 SET @saved_sql_mode = @@sql_mode */ ; |
|
/*!50003 SET sql_mode = '' */ ; |
|
DELIMITER ;; |
|
/*!50003 CREATE*/ /*!50017 DEFINER=CURRENT_USER*/ /*!50003 TRIGGER trg_cataloginventory_stock_item_after_insert AFTER INSERT ON cataloginventory_stock_item FOR EACH ROW |
|
BEGIN |
|
INSERT IGNORE INTO `algolia_products_cl` (`entity_id`) VALUES (NEW.`product_id`); |
|
INSERT IGNORE INTO `cataloginventory_stock_cl` (`entity_id`) VALUES (NEW.`product_id`); |
|
END */;; |
|
DELIMITER ; |
|
/*!50003 SET sql_mode = @saved_sql_mode */ ; |
|
/*!50003 SET character_set_client = @saved_cs_client */ ; |
|
/*!50003 SET character_set_results = @saved_cs_results */ ; |
|
/*!50003 SET collation_connection = @saved_col_connection */ ; |
|
/*!50003 SET @saved_cs_client = @@character_set_client */ ; |
|
/*!50003 SET @saved_cs_results = @@character_set_results */ ; |
|
/*!50003 SET @saved_col_connection = @@collation_connection */ ; |
|
/*!50003 SET character_set_client = utf8mb3 */ ; |
|
/*!50003 SET character_set_results = utf8mb3 */ ; |
|
/*!50003 SET collation_connection = utf8mb3_general_ci */ ; |
|
/*!50003 SET @saved_sql_mode = @@sql_mode */ ; |
|
/*!50003 SET sql_mode = '' */ ; |
|
DELIMITER ;; |
|
/*!50003 CREATE*/ /*!50017 DEFINER=CURRENT_USER*/ /*!50003 TRIGGER trg_cataloginventory_stock_item_after_update AFTER UPDATE ON cataloginventory_stock_item FOR EACH ROW |
|
BEGIN |
|
IF (NOT(NEW.`item_id` <=> OLD.`item_id`) OR NOT(NEW.`product_id` <=> OLD.`product_id`) OR NOT(NEW.`stock_id` <=> OLD.`stock_id`) OR NOT(NEW.`qty` <=> OLD.`qty`) OR NOT(NEW.`min_qty` <=> OLD.`min_qty`) OR NOT(NEW.`use_config_min_qty` <=> OLD.`use_config_min_qty`) OR NOT(NEW.`is_qty_decimal` <=> OLD.`is_qty_decimal`) OR NOT(NEW.`backorders` <=> OLD.`backorders`) OR NOT(NEW.`use_config_backorders` <=> OLD.`use_config_backorders`) OR NOT(NEW.`min_sale_qty` <=> OLD.`min_sale_qty`) OR NOT(NEW.`use_config_min_sale_qty` <=> OLD.`use_config_min_sale_qty`) OR NOT(NEW.`max_sale_qty` <=> OLD.`max_sale_qty`) OR NOT(NEW.`use_config_max_sale_qty` <=> OLD.`use_config_max_sale_qty`) OR NOT(NEW.`is_in_stock` <=> OLD.`is_in_stock`) OR NOT(NEW.`low_stock_date` <=> OLD.`low_stock_date`) OR NOT(NEW.`notify_stock_qty` <=> OLD.`notify_stock_qty`) OR NOT(NEW.`use_config_notify_stock_qty` <=> OLD.`use_config_notify_stock_qty`) OR NOT(NEW.`manage_stock` <=> OLD.`manage_stock`) OR NOT(NEW.`use_config_manage_stock` <=> OLD.`use_config_manage_stock`) OR NOT(NEW.`stock_status_changed_auto` <=> OLD.`stock_status_changed_auto`) OR NOT(NEW.`use_config_qty_increments` <=> OLD.`use_config_qty_increments`) OR NOT(NEW.`qty_increments` <=> OLD.`qty_increments`) OR NOT(NEW.`use_config_enable_qty_inc` <=> OLD.`use_config_enable_qty_inc`) OR NOT(NEW.`enable_qty_increments` <=> OLD.`enable_qty_increments`) OR NOT(NEW.`is_decimal_divided` <=> OLD.`is_decimal_divided`) OR NOT(NEW.`website_id` <=> OLD.`website_id`) OR NOT(NEW.`deferred_stock_update` <=> OLD.`deferred_stock_update`) OR NOT(NEW.`use_config_deferred_stock_update` <=> OLD.`use_config_deferred_stock_update`) OR NOT(NEW.`ukey` <=> OLD.`ukey`)) THEN INSERT IGNORE INTO `algolia_products_cl` (`entity_id`) VALUES (NEW.`product_id`); END IF; |
|
IF (NOT(NEW.`item_id` <=> OLD.`item_id`) OR NOT(NEW.`product_id` <=> OLD.`product_id`) OR NOT(NEW.`stock_id` <=> OLD.`stock_id`) OR NOT(NEW.`qty` <=> OLD.`qty`) OR NOT(NEW.`min_qty` <=> OLD.`min_qty`) OR NOT(NEW.`use_config_min_qty` <=> OLD.`use_config_min_qty`) OR NOT(NEW.`is_qty_decimal` <=> OLD.`is_qty_decimal`) OR NOT(NEW.`backorders` <=> OLD.`backorders`) OR NOT(NEW.`use_config_backorders` <=> OLD.`use_config_backorders`) OR NOT(NEW.`min_sale_qty` <=> OLD.`min_sale_qty`) OR NOT(NEW.`use_config_min_sale_qty` <=> OLD.`use_config_min_sale_qty`) OR NOT(NEW.`max_sale_qty` <=> OLD.`max_sale_qty`) OR NOT(NEW.`use_config_max_sale_qty` <=> OLD.`use_config_max_sale_qty`) OR NOT(NEW.`is_in_stock` <=> OLD.`is_in_stock`) OR NOT(NEW.`low_stock_date` <=> OLD.`low_stock_date`) OR NOT(NEW.`notify_stock_qty` <=> OLD.`notify_stock_qty`) OR NOT(NEW.`use_config_notify_stock_qty` <=> OLD.`use_config_notify_stock_qty`) OR NOT(NEW.`manage_stock` <=> OLD.`manage_stock`) OR NOT(NEW.`use_config_manage_stock` <=> OLD.`use_config_manage_stock`) OR NOT(NEW.`stock_status_changed_auto` <=> OLD.`stock_status_changed_auto`) OR NOT(NEW.`use_config_qty_increments` <=> OLD.`use_config_qty_increments`) OR NOT(NEW.`qty_increments` <=> OLD.`qty_increments`) OR NOT(NEW.`use_config_enable_qty_inc` <=> OLD.`use_config_enable_qty_inc`) OR NOT(NEW.`enable_qty_increments` <=> OLD.`enable_qty_increments`) OR NOT(NEW.`is_decimal_divided` <=> OLD.`is_decimal_divided`) OR NOT(NEW.`website_id` <=> OLD.`website_id`) OR NOT(NEW.`deferred_stock_update` <=> OLD.`deferred_stock_update`) OR NOT(NEW.`use_config_deferred_stock_update` <=> OLD.`use_config_deferred_stock_update`) OR NOT(NEW.`ukey` <=> OLD.`ukey`)) THEN INSERT IGNORE INTO `cataloginventory_stock_cl` (`entity_id`) VALUES (NEW.`product_id`); END IF; |
|
END */;; |
|
DELIMITER ; |
|
/*!50003 SET sql_mode = @saved_sql_mode */ ; |
|
/*!50003 SET character_set_client = @saved_cs_client */ ; |
|
/*!50003 SET character_set_results = @saved_cs_results */ ; |
|
/*!50003 SET collation_connection = @saved_col_connection */ ; |
|
/*!50003 SET @saved_cs_client = @@character_set_client */ ; |
|
/*!50003 SET @saved_cs_results = @@character_set_results */ ; |
|
/*!50003 SET @saved_col_connection = @@collation_connection */ ; |
|
/*!50003 SET character_set_client = utf8mb3 */ ; |
|
/*!50003 SET character_set_results = utf8mb3 */ ; |
|
/*!50003 SET collation_connection = utf8mb3_general_ci */ ; |
|
/*!50003 SET @saved_sql_mode = @@sql_mode */ ; |
|
/*!50003 SET sql_mode = '' */ ; |
|
DELIMITER ;; |
|
/*!50003 CREATE*/ /*!50017 DEFINER=CURRENT_USER*/ /*!50003 TRIGGER trg_cataloginventory_stock_item_after_delete AFTER DELETE ON cataloginventory_stock_item FOR EACH ROW |
|
BEGIN |
|
INSERT IGNORE INTO `algolia_products_cl` (`entity_id`) VALUES (OLD.`product_id`); |
|
INSERT IGNORE INTO `cataloginventory_stock_cl` (`entity_id`) VALUES (OLD.`product_id`); |
|
END */;; |
|
DELIMITER ; |
|
/*!50003 SET sql_mode = @saved_sql_mode */ ; |
|
/*!50003 SET character_set_client = @saved_cs_client */ ; |
|
/*!50003 SET character_set_results = @saved_cs_results */ ; |
|
/*!50003 SET collation_connection = @saved_col_connection */ ; |
|
|
|
-- |
|
-- Table structure for table `cataloginventory_stock_status` |
|
-- |
|
|
|
DROP TABLE IF EXISTS `cataloginventory_stock_status`; |
|
/*!40101 SET @saved_cs_client = @@character_set_client */; |
|
/*!40101 SET character_set_client = utf8 */; |
|
CREATE TABLE `cataloginventory_stock_status` ( |
|
`product_id` int(10) unsigned NOT NULL COMMENT 'Product ID', |
|
`website_id` smallint(5) unsigned NOT NULL COMMENT 'Website ID', |
|
`stock_id` smallint(5) unsigned NOT NULL COMMENT 'Stock ID', |
|
`qty` decimal(12,4) NOT NULL DEFAULT 0.0000 COMMENT 'Qty', |
|
`stock_status` smallint(5) unsigned NOT NULL COMMENT 'Stock Status', |
|
PRIMARY KEY (`product_id`,`website_id`,`stock_id`), |
|
KEY `CATALOGINVENTORY_STOCK_STATUS_STOCK_ID` (`stock_id`), |
|
KEY `CATALOGINVENTORY_STOCK_STATUS_WEBSITE_ID` (`website_id`), |
|
KEY `CATALOGINVENTORY_STOCK_STATUS_STOCK_STATUS` (`stock_status`) |
|
) ENGINE=InnoDB DEFAULT CHARSET=utf8mb3 COLLATE=utf8mb3_general_ci COMMENT='Cataloginventory Stock Status'; |
|
/*!40101 SET character_set_client = @saved_cs_client */; |
|
|
|
-- |
|
-- Table structure for table `cataloginventory_stock_status_idx` |
|
-- |
|
|
|
DROP TABLE IF EXISTS `cataloginventory_stock_status_idx`; |
|
/*!40101 SET @saved_cs_client = @@character_set_client */; |
|
/*!40101 SET character_set_client = utf8 */; |
|
CREATE TABLE `cataloginventory_stock_status_idx` ( |
|
`product_id` int(10) unsigned NOT NULL COMMENT 'Product ID', |
|
`website_id` smallint(5) unsigned NOT NULL COMMENT 'Website ID', |
|
`stock_id` smallint(5) unsigned NOT NULL COMMENT 'Stock ID', |
|
`qty` decimal(12,4) NOT NULL DEFAULT 0.0000 COMMENT 'Qty', |
|
`stock_status` smallint(5) unsigned NOT NULL COMMENT 'Stock Status', |
|
PRIMARY KEY (`product_id`,`website_id`,`stock_id`), |
|
KEY `CATALOGINVENTORY_STOCK_STATUS_IDX_STOCK_ID` (`stock_id`), |
|
KEY `CATALOGINVENTORY_STOCK_STATUS_IDX_WEBSITE_ID` (`website_id`) |
|
) ENGINE=InnoDB DEFAULT CHARSET=utf8mb3 COLLATE=utf8mb3_general_ci COMMENT='Cataloginventory Stock Status Indexer Idx'; |
|
/*!40101 SET character_set_client = @saved_cs_client */; |
|
|
|
-- |
|
-- Table structure for table `cataloginventory_stock_status_replica` |
|
-- |
|
|
|
DROP TABLE IF EXISTS `cataloginventory_stock_status_replica`; |
|
/*!40101 SET @saved_cs_client = @@character_set_client */; |
|
/*!40101 SET character_set_client = utf8 */; |
|
CREATE TABLE `cataloginventory_stock_status_replica` ( |
|
`product_id` int(10) unsigned NOT NULL COMMENT 'Product ID', |
|
`website_id` smallint(5) unsigned NOT NULL COMMENT 'Website ID', |
|
`stock_id` smallint(5) unsigned NOT NULL COMMENT 'Stock ID', |
|
`qty` decimal(12,4) NOT NULL DEFAULT 0.0000 COMMENT 'Qty', |
|
`stock_status` smallint(5) unsigned NOT NULL COMMENT 'Stock Status', |
|
PRIMARY KEY (`product_id`,`website_id`,`stock_id`), |
|
KEY `CATALOGINVENTORY_STOCK_STATUS_STOCK_ID` (`stock_id`), |
|
KEY `CATALOGINVENTORY_STOCK_STATUS_WEBSITE_ID` (`website_id`), |
|
KEY `CATALOGINVENTORY_STOCK_STATUS_STOCK_STATUS` (`stock_status`) |
|
) ENGINE=InnoDB DEFAULT CHARSET=utf8mb3 COLLATE=utf8mb3_general_ci COMMENT='Cataloginventory Stock Status'; |
|
/*!40101 SET character_set_client = @saved_cs_client */; |
|
|
|
-- |
|
-- Table structure for table `cataloginventory_stock_status_tmp` |
|
-- |
|
|
|
DROP TABLE IF EXISTS `cataloginventory_stock_status_tmp`; |
|
/*!40101 SET @saved_cs_client = @@character_set_client */; |
|
/*!40101 SET character_set_client = utf8 */; |
|
CREATE TABLE `cataloginventory_stock_status_tmp` ( |
|
`product_id` int(10) unsigned NOT NULL COMMENT 'Product ID', |
|
`website_id` smallint(5) unsigned NOT NULL COMMENT 'Website ID', |
|
`stock_id` smallint(5) unsigned NOT NULL COMMENT 'Stock ID', |
|
`qty` decimal(12,4) NOT NULL DEFAULT 0.0000 COMMENT 'Qty', |
|
`stock_status` smallint(5) unsigned NOT NULL COMMENT 'Stock Status', |
|
PRIMARY KEY (`product_id`,`website_id`,`stock_id`), |
|
KEY `CATALOGINVENTORY_STOCK_STATUS_TMP_STOCK_ID` (`stock_id`), |
|
KEY `CATALOGINVENTORY_STOCK_STATUS_TMP_WEBSITE_ID` (`website_id`) |
|
) ENGINE=InnoDB DEFAULT CHARSET=utf8mb3 COLLATE=utf8mb3_general_ci COMMENT='Cataloginventory Stock Status Indexer Tmp'; |
|
/*!40101 SET character_set_client = @saved_cs_client */; |
|
|
|
-- |
|
-- Table structure for table `inventory_low_stock_notification_configuration` |
|
-- |
|
|
|
DROP TABLE IF EXISTS `inventory_low_stock_notification_configuration`; |
|
/*!40101 SET @saved_cs_client = @@character_set_client */; |
|
/*!40101 SET character_set_client = utf8 */; |
|
CREATE TABLE `inventory_low_stock_notification_configuration` ( |
|
`source_code` varchar(255) NOT NULL, |
|
`sku` varchar(64) NOT NULL, |
|
`notify_stock_qty` decimal(12,4) DEFAULT NULL, |
|
PRIMARY KEY (`source_code`,`sku`) |
|
) ENGINE=InnoDB DEFAULT CHARSET=utf8mb3 COLLATE=utf8mb3_general_ci; |
|
/*!40101 SET character_set_client = @saved_cs_client */; |
|
|
|
-- |
|
-- Table structure for table `inventory_source_item` |
|
-- |
|
|
|
DROP TABLE IF EXISTS `inventory_source_item`; |
|
/*!40101 SET @saved_cs_client = @@character_set_client */; |
|
/*!40101 SET character_set_client = utf8 */; |
|
CREATE TABLE `inventory_source_item` ( |
|
`source_item_id` int(10) unsigned NOT NULL AUTO_INCREMENT, |
|
`source_code` varchar(255) NOT NULL, |
|
`sku` varchar(64) NOT NULL, |
|
`quantity` decimal(12,4) NOT NULL DEFAULT 0.0000, |
|
`status` smallint(5) unsigned NOT NULL DEFAULT 0, |
|
`eta` datetime DEFAULT NULL COMMENT 'Estimated time of arrival', |
|
PRIMARY KEY (`source_item_id`), |
|
UNIQUE KEY `INVENTORY_SOURCE_ITEM_SOURCE_CODE_SKU` (`source_code`,`sku`), |
|
KEY `INVENTORY_SOURCE_ITEM_SKU_SOURCE_CODE_QUANTITY` (`sku`,`source_code`,`quantity`), |
|
CONSTRAINT `INVENTORY_SOURCE_ITEM_SOURCE_CODE_INVENTORY_SOURCE_SOURCE_CODE` FOREIGN KEY (`source_code`) REFERENCES `inventory_source` (`source_code`) ON DELETE CASCADE |
|
) ENGINE=InnoDB DEFAULT CHARSET=utf8mb3 COLLATE=utf8mb3_general_ci; |
|
/*!40101 SET character_set_client = @saved_cs_client */; |
|
/*!50003 SET @saved_cs_client = @@character_set_client */ ; |
|
/*!50003 SET @saved_cs_results = @@character_set_results */ ; |
|
/*!50003 SET @saved_col_connection = @@collation_connection */ ; |
|
/*!50003 SET character_set_client = utf8mb3 */ ; |
|
/*!50003 SET character_set_results = utf8mb3 */ ; |
|
/*!50003 SET collation_connection = utf8mb3_general_ci */ ; |
|
/*!50003 SET @saved_sql_mode = @@sql_mode */ ; |
|
/*!50003 SET sql_mode = '' */ ; |
|
DELIMITER ;; |
|
/*!50003 CREATE*/ /*!50017 DEFINER=CURRENT_USER*/ /*!50003 TRIGGER trg_inventory_source_item_after_insert AFTER INSERT ON inventory_source_item FOR EACH ROW |
|
BEGIN |
|
INSERT IGNORE INTO `inventory_cl` (`entity_id`) VALUES (NEW.`source_item_id`); |
|
END */;; |
|
DELIMITER ; |
|
/*!50003 SET sql_mode = @saved_sql_mode */ ; |
|
/*!50003 SET character_set_client = @saved_cs_client */ ; |
|
/*!50003 SET character_set_results = @saved_cs_results */ ; |
|
/*!50003 SET collation_connection = @saved_col_connection */ ; |
|
/*!50003 SET @saved_cs_client = @@character_set_client */ ; |
|
/*!50003 SET @saved_cs_results = @@character_set_results */ ; |
|
/*!50003 SET @saved_col_connection = @@collation_connection */ ; |
|
/*!50003 SET character_set_client = utf8mb3 */ ; |
|
/*!50003 SET character_set_results = utf8mb3 */ ; |
|
/*!50003 SET collation_connection = utf8mb3_general_ci */ ; |
|
/*!50003 SET @saved_sql_mode = @@sql_mode */ ; |
|
/*!50003 SET sql_mode = '' */ ; |
|
DELIMITER ;; |
|
/*!50003 CREATE*/ /*!50017 DEFINER=CURRENT_USER*/ /*!50003 TRIGGER trg_inventory_source_item_after_update AFTER UPDATE ON inventory_source_item FOR EACH ROW |
|
BEGIN |
|
IF (NOT(NEW.`source_item_id` <=> OLD.`source_item_id`) OR NOT(NEW.`source_code` <=> OLD.`source_code`) OR NOT(NEW.`sku` <=> OLD.`sku`) OR NOT(NEW.`quantity` <=> OLD.`quantity`) OR NOT(NEW.`status` <=> OLD.`status`) OR NOT(NEW.`eta` <=> OLD.`eta`)) THEN INSERT IGNORE INTO `inventory_cl` (`entity_id`) VALUES (NEW.`source_item_id`); END IF; |
|
END */;; |
|
DELIMITER ; |
|
/*!50003 SET sql_mode = @saved_sql_mode */ ; |
|
/*!50003 SET character_set_client = @saved_cs_client */ ; |
|
/*!50003 SET character_set_results = @saved_cs_results */ ; |
|
/*!50003 SET collation_connection = @saved_col_connection */ ; |
|
/*!50003 SET @saved_cs_client = @@character_set_client */ ; |
|
/*!50003 SET @saved_cs_results = @@character_set_results */ ; |
|
/*!50003 SET @saved_col_connection = @@collation_connection */ ; |
|
/*!50003 SET character_set_client = utf8mb3 */ ; |
|
/*!50003 SET character_set_results = utf8mb3 */ ; |
|
/*!50003 SET collation_connection = utf8mb3_general_ci */ ; |
|
/*!50003 SET @saved_sql_mode = @@sql_mode */ ; |
|
/*!50003 SET sql_mode = '' */ ; |
|
DELIMITER ;; |
|
/*!50003 CREATE*/ /*!50017 DEFINER=CURRENT_USER*/ /*!50003 TRIGGER trg_inventory_source_item_after_delete AFTER DELETE ON inventory_source_item FOR EACH ROW |
|
BEGIN |
|
INSERT IGNORE INTO `inventory_cl` (`entity_id`) VALUES (OLD.`source_item_id`); |
|
END */;; |
|
DELIMITER ; |
|
/*!50003 SET sql_mode = @saved_sql_mode */ ; |
|
/*!50003 SET character_set_client = @saved_cs_client */ ; |
|
/*!50003 SET character_set_results = @saved_cs_results */ ; |
|
/*!50003 SET collation_connection = @saved_col_connection */ ; |
|
|
|
-- |
|
-- Table structure for table `inventory_source_stock_link` |
|
-- |
|
|
|
DROP TABLE IF EXISTS `inventory_source_stock_link`; |
|
/*!40101 SET @saved_cs_client = @@character_set_client */; |
|
/*!40101 SET character_set_client = utf8 */; |
|
CREATE TABLE `inventory_source_stock_link` ( |
|
`link_id` int(10) unsigned NOT NULL AUTO_INCREMENT, |
|
`stock_id` int(10) unsigned NOT NULL, |
|
`source_code` varchar(255) NOT NULL, |
|
`priority` smallint(5) unsigned NOT NULL, |
|
PRIMARY KEY (`link_id`), |
|
UNIQUE KEY `INVENTORY_SOURCE_STOCK_LINK_STOCK_ID_SOURCE_CODE` (`stock_id`,`source_code`), |
|
KEY `INV_SOURCE_STOCK_LNK_SOURCE_CODE_INV_SOURCE_SOURCE_CODE` (`source_code`), |
|
KEY `INVENTORY_SOURCE_STOCK_LINK_STOCK_ID_PRIORITY` (`stock_id`,`priority`), |
|
CONSTRAINT `INVENTORY_SOURCE_STOCK_LINK_STOCK_ID_INVENTORY_STOCK_STOCK_ID` FOREIGN KEY (`stock_id`) REFERENCES `inventory_stock` (`stock_id`) ON DELETE CASCADE, |
|
CONSTRAINT `INV_SOURCE_STOCK_LNK_SOURCE_CODE_INV_SOURCE_SOURCE_CODE` FOREIGN KEY (`source_code`) REFERENCES `inventory_source` (`source_code`) ON DELETE CASCADE |
|
) ENGINE=InnoDB DEFAULT CHARSET=utf8mb3 COLLATE=utf8mb3_general_ci; |
|
/*!40101 SET character_set_client = @saved_cs_client */; |
|
/*!40103 SET TIME_ZONE=@OLD_TIME_ZONE */; |
|
|
|
/*!40101 SET SQL_MODE=@OLD_SQL_MODE */; |
|
/*!40014 SET FOREIGN_KEY_CHECKS=@OLD_FOREIGN_KEY_CHECKS */; |
|
/*!40014 SET UNIQUE_CHECKS=@OLD_UNIQUE_CHECKS */; |
|
/*!40101 SET CHARACTER_SET_CLIENT=@OLD_CHARACTER_SET_CLIENT */; |
|
/*!40101 SET CHARACTER_SET_RESULTS=@OLD_CHARACTER_SET_RESULTS */; |
|
/*!40101 SET COLLATION_CONNECTION=@OLD_COLLATION_CONNECTION */; |
|
/*!40111 SET SQL_NOTES=@OLD_SQL_NOTES */; |
|
|
|
-- Dump completed on 2024-10-09 10:54:19 |
|
-- MariaDB dump 10.19 Distrib 10.5.21-MariaDB, for debian-linux-gnu (aarch64) |
|
-- |
|
-- Host: db Database: magento |
|
-- ------------------------------------------------------ |
|
-- Server version 10.6.16-MariaDB-1:10.6.16+maria~ubu2004 |
|
|
|
/*!40101 SET @OLD_CHARACTER_SET_CLIENT=@@CHARACTER_SET_CLIENT */; |
|
/*!40101 SET @OLD_CHARACTER_SET_RESULTS=@@CHARACTER_SET_RESULTS */; |
|
/*!40101 SET @OLD_COLLATION_CONNECTION=@@COLLATION_CONNECTION */; |
|
/*!40101 SET NAMES utf8mb4 */; |
|
/*!40103 SET @OLD_TIME_ZONE=@@TIME_ZONE */; |
|
/*!40103 SET TIME_ZONE='+00:00' */; |
|
/*!40014 SET @OLD_UNIQUE_CHECKS=@@UNIQUE_CHECKS, UNIQUE_CHECKS=0 */; |
|
/*!40014 SET @OLD_FOREIGN_KEY_CHECKS=@@FOREIGN_KEY_CHECKS, FOREIGN_KEY_CHECKS=0 */; |
|
/*!40101 SET @OLD_SQL_MODE=@@SQL_MODE, SQL_MODE='NO_AUTO_VALUE_ON_ZERO' */; |
|
/*!40111 SET @OLD_SQL_NOTES=@@SQL_NOTES, SQL_NOTES=0 */; |
|
/*!40103 SET TIME_ZONE=@OLD_TIME_ZONE */; |
|
|
|
/*!40101 SET SQL_MODE=@OLD_SQL_MODE */; |
|
/*!40014 SET FOREIGN_KEY_CHECKS=@OLD_FOREIGN_KEY_CHECKS */; |
|
/*!40014 SET UNIQUE_CHECKS=@OLD_UNIQUE_CHECKS */; |
|
/*!40101 SET CHARACTER_SET_CLIENT=@OLD_CHARACTER_SET_CLIENT */; |
|
/*!40101 SET CHARACTER_SET_RESULTS=@OLD_CHARACTER_SET_RESULTS */; |
|
/*!40101 SET COLLATION_CONNECTION=@OLD_COLLATION_CONNECTION */; |
|
/*!40111 SET SQL_NOTES=@OLD_SQL_NOTES */; |
|
|
|
-- Dump completed on 2024-10-09 10:54:19 |
|
|
|
DELETE FROM url_rewrite WHERE entity_type = 'product'; |
|
|
|
DELETE FROM eav_attribute |
|
WHERE |
|
entity_type_id = (SELECT entity_type_id FROM eav_entity_type WHERE entity_type_code = "catalog_product") |
|
and |
|
attribute_code not in ( |
|
-- paste here the default attribute codes list |
|
"allow_message", "allow_open_amount", "category_ids", "color", "cost", "country_of_manufacture", "created_at", "custom_design", "custom_design_from", "custom_design_to", "custom_layout", "custom_layout_update", "custom_layout_update_file", "description", "email_template", "gallery", "giftcard_amounts", "giftcard_type", "gift_message_available", "gift_wrapping_available", "gift_wrapping_price", "has_options", "image", "image_label", "is_redeemable", "is_returnable", "lifetime", "links_exist", "links_purchased_separately", "links_title", "manufacturer", "media_gallery", "meta_description", "meta_keyword", "meta_title", "minimal_price", "msrp", "msrp_display_actual_price_type", "name", "news_from_date", "news_to_date", "old_id", "open_amount_max", "open_amount_min", "options_container", "page_layout", "price", "price_type", "price_view", "quantity_and_stock_status", "related_tgtr_position_behavior", "related_tgtr_position_limit", "required_options", "samples_title", "shipment_type", "short_description", "sku", "sku_type", "small_image", "small_image_label", "special_from_date", "special_price", "special_to_date", "status", "swatch_image", "tax_class_id", "thumbnail", "thumbnail_label", "tier_price", "updated_at", "upsell_tgtr_position_behavior", "upsell_tgtr_position_limit", "url_key", "url_path", "use_config_allow_message", "use_config_email_template", "use_config_is_redeemable", "use_config_lifetime", "visibility", "weight", "weight_type" |
|
); |