File tree Expand file tree Collapse file tree 4 files changed +78
-2
lines changed Expand file tree Collapse file tree 4 files changed +78
-2
lines changed Original file line number Diff line number Diff line change 21
21
<config >
22
22
<modules >
23
23
<Smile_ElasticSearch >
24
- <version >1.2.1 </version >
24
+ <version >1.2.2 </version >
25
25
</Smile_ElasticSearch >
26
26
</modules >
27
27
<global >
Original file line number Diff line number Diff line change
1
+ <?php
2
+ /**
3
+ * Append Missing foreign key to catalog_product_entity on search terms product positions
4
+ *
5
+ * DISCLAIMER
6
+ *
7
+ * Do not edit or add to this file if you wish to upgrade Smile Searchandising Suite to newer
8
+ * versions in the future.
9
+ *
10
+ * @category Smile
11
+ * @package Smile_ElasticSearch
12
+ * @author Romain Ruaud <[email protected] >
13
+ * @copyright 2016 Smile
14
+ * @license Apache License Version 2.0
15
+ */
16
+ /* @var $installer Mage_Core_Model_Resource_Setup */
17
+ $ installer = $ this ;
18
+
19
+ $ installer ->startSetup ();
20
+
21
+ $ tableName = $ installer ->getTable ('smile_elasticsearch/search_term_product_position ' );
22
+
23
+ $ installer ->getConnection ()->addForeignKey (
24
+ $ installer ->getFkName (
25
+ 'smile_elasticsearch/search_term_product_position ' ,
26
+ 'product_id ' ,
27
+ 'catalog/product ' ,
28
+ 'entity_id '
29
+ ),
30
+ $ tableName ,
31
+ 'product_id ' ,
32
+ $ installer ->getTable ('catalog/product ' ),
33
+ 'entity_id ' ,
34
+ Varien_Db_Ddl_Table::ACTION_CASCADE ,
35
+ Varien_Db_Ddl_Table::ACTION_CASCADE
36
+ );
37
+
38
+ $ installer ->endSetup ();
Original file line number Diff line number Diff line change 21
21
<config >
22
22
<modules >
23
23
<Smile_VirtualCategories >
24
- <version >1.0.2 </version >
24
+ <version >1.0.3 </version >
25
25
</Smile_VirtualCategories >
26
26
</modules >
27
27
<global >
Original file line number Diff line number Diff line change
1
+ <?php
2
+ /**
3
+ * Append Missing foreign key to catalog_product_entity on virtual categories product positions
4
+ *
5
+ * DISCLAIMER
6
+ *
7
+ * Do not edit or add to this file if you wish to upgrade Smile Searchandising Suite to newer
8
+ * versions in the future.
9
+ *
10
+ * @category Smile
11
+ * @package Smile_VirtualCategories
12
+ * @author Romain Ruaud <[email protected] >
13
+ * @copyright 2016 Smile
14
+ * @license Apache License Version 2.0
15
+ */
16
+ /* @var $installer Mage_Core_Model_Resource_Setup */
17
+ $ installer = $ this ;
18
+
19
+ $ installer ->startSetup ();
20
+
21
+ $ tableName = $ installer ->getTable ('smile_virtualcategories/category_product_position ' );
22
+
23
+ $ installer ->getConnection ()->addForeignKey (
24
+ $ installer ->getFkName (
25
+ 'smile_virtualcategories/category_product_position ' ,
26
+ 'product_id ' ,
27
+ 'catalog/product ' ,
28
+ 'entity_id '
29
+ ),
30
+ $ tableName ,
31
+ 'product_id ' ,
32
+ $ installer ->getTable ('catalog/product ' ),
33
+ 'entity_id ' ,
34
+ Varien_Db_Ddl_Table::ACTION_CASCADE ,
35
+ Varien_Db_Ddl_Table::ACTION_CASCADE
36
+ );
37
+
38
+ $ installer ->endSetup ();
You can’t perform that action at this time.
0 commit comments