File tree Expand file tree Collapse file tree 4 files changed +16
-4
lines changed
Bundle/Setup/Patch/Schema
CatalogInventory/Setup/Patch/Schema
Catalog/Setup/Patch/Schema
Downloadable/Setup/Patch/Schema Expand file tree Collapse file tree 4 files changed +16
-4
lines changed Original file line number Diff line number Diff line change @@ -41,7 +41,10 @@ public function apply()
4141 'catalog_product_index_price_bundle_opt_tmp ' ,
4242 ];
4343 foreach ($ tables as $ table ) {
44- $ this ->schemaSetup ->getConnection ()->changeTableEngine ($ table , 'InnoDB ' );
44+ $ tableName = $ this ->schemaSetup ->getTable ($ table );
45+ if ($ this ->schemaSetup ->getConnection ()->isTableExists ($ tableName )) {
46+ $ this ->schemaSetup ->getConnection ()->changeTableEngine ($ tableName , 'InnoDB ' );
47+ }
4548 }
4649
4750 $ this ->schemaSetup ->endSetup ();
Original file line number Diff line number Diff line change @@ -47,7 +47,10 @@ public function apply()
4747 'catalog_category_product_index_tmp ' ,
4848 ];
4949 foreach ($ tables as $ table ) {
50- $ this ->schemaSetup ->getConnection ()->changeTableEngine ($ table , 'InnoDB ' );
50+ $ tableName = $ this ->schemaSetup ->getTable ($ table );
51+ if ($ this ->schemaSetup ->getConnection ()->isTableExists ($ tableName )) {
52+ $ this ->schemaSetup ->getConnection ()->changeTableEngine ($ tableName , 'InnoDB ' );
53+ }
5154 }
5255
5356 $ this ->schemaSetup ->endSetup ();
Original file line number Diff line number Diff line change @@ -35,7 +35,10 @@ public function apply()
3535 {
3636 $ this ->schemaSetup ->startSetup ();
3737
38- $ this ->schemaSetup ->getConnection ()->changeTableEngine ('cataloginventory_stock_status_tmp ' , 'InnoDB ' );
38+ $ tableName = $ this ->schemaSetup ->getTable ('cataloginventory_stock_status_tmp ' );
39+ if ($ this ->schemaSetup ->getConnection ()->isTableExists ($ tableName )) {
40+ $ this ->schemaSetup ->getConnection ()->changeTableEngine ($ tableName , 'InnoDB ' );
41+ }
3942
4043 $ this ->schemaSetup ->endSetup ();
4144 }
Original file line number Diff line number Diff line change @@ -35,7 +35,10 @@ public function apply()
3535 {
3636 $ this ->schemaSetup ->startSetup ();
3737
38- $ this ->schemaSetup ->getConnection ()->changeTableEngine ('catalog_product_index_price_downlod_tmp ' , 'InnoDB ' );
38+ $ tableName = $ this ->schemaSetup ->getTable ('catalog_product_index_price_downlod_tmp ' );
39+ if ($ this ->schemaSetup ->getConnection ()->isTableExists ($ tableName )) {
40+ $ this ->schemaSetup ->getConnection ()->changeTableEngine ($ tableName , 'InnoDB ' );
41+ }
3942
4043 $ this ->schemaSetup ->endSetup ();
4144 }
You can’t perform that action at this time.
0 commit comments