File tree Expand file tree Collapse file tree
Expand file tree Collapse file tree Original file line number Diff line number Diff line change 11<?php
22/**
33 * Append Missing foreign key to catalog_product_entity on search terms product positions
4+ * Also delete useless indexes previously created
45 *
56 * DISCLAIMER
67 *
2021
2122$ tableName = $ installer ->getTable ('smile_elasticsearch/search_term_product_position ' );
2223
24+ $ installer ->getConnection ()->dropIndex (
25+ $ tableName ,
26+ $ installer ->getIdxName ('smile_elasticsearch/search_term_product_position ' , array ('query_id ' ))
27+ );
28+
29+ $ installer ->getConnection ()->dropIndex (
30+ $ tableName ,
31+ $ installer ->getIdxName ('smile_elasticsearch/search_term_product_position ' , array ('product_id ' ))
32+ );
33+
2334$ installer ->getConnection ()->addForeignKey (
2435 $ installer ->getFkName (
2536 'smile_elasticsearch/search_term_product_position ' ,
Original file line number Diff line number Diff line change 11<?php
22/**
33 * Append Missing foreign key to catalog_product_entity on virtual categories product positions
4+ * Also delete useless indexes previously created
45 *
56 * DISCLAIMER
67 *
2021
2122$ tableName = $ installer ->getTable ('smile_virtualcategories/category_product_position ' );
2223
24+ $ installer ->getConnection ()->dropIndex (
25+ $ tableName ,
26+ $ installer ->getIdxName ('smile_virtualcategories/category_product_position ' , array ('category_id ' ))
27+ );
28+
29+ $ installer ->getConnection ()->dropIndex (
30+ $ tableName ,
31+ $ installer ->getIdxName ('smile_virtualcategories/category_product_position ' , array ('product_id ' ))
32+ );
33+
2334$ installer ->getConnection ()->addForeignKey (
2435 $ installer ->getFkName (
2536 'smile_virtualcategories/category_product_position ' ,
You can’t perform that action at this time.
0 commit comments