Both sides previous revision
Previous revision
Next revision
|
Previous revision
|
udropship:umarketplace:disable_unirgy_modules [2023/06/06 10:28] wtsergo [Notes] |
udropship:umarketplace:disable_unirgy_modules [2023/06/06 10:41] (current) wtsergo [Disable] |
==== Notes ==== | ==== Notes ==== |
| |
As state in magento documentation [[https://devdocs.magento.com/guides/v2.3/extension-dev-guide/declarative-schema/db-schema.html#disable-a-module]] modules disable will drop those modules db table, i.e. data will be lost. If you plan to restore it later don't forget to use ''--safe-mode=1'' option of ''setup:upgrade'' command or create db dump. | As state in magento documentation [[https://devdocs.magento.com/guides/v2.3/extension-dev-guide/declarative-schema/db-schema.html#disable-a-module]] modules disable will drop those modules' db tables, i.e. data will be lost. If you plan to restore it later don't forget to use ''--safe-mode=1'' option of ''setup:upgrade'' command or create db dump. |
| |
==== Disable ==== | ==== Disable ==== |
| |
- Truncate these tables (or remove rows with udropship_vendor!=0): catalog_product_index_price, catalog_product_index_price_replica, cataloginventory_stock_status, cataloginventory_stock_status_replica \\ ''truncate catalog_product_index_price;'' \\ ''truncate catalog_product_index_price_replica;'' \\ ''truncate cataloginventory_stock_status;'' \\ ''truncate cataloginventory_stock_status_replica;'' | - Truncate these tables (or remove rows with udropship_vendor!=0): catalog_product_index_price, catalog_product_index_price_replica, cataloginventory_stock_status, cataloginventory_stock_status_replica <code>truncate catalog_product_index_price; |
- Collect modules to disable using this command \\ ''bin/magento module:status| grep Unirgy_'' | truncate catalog_product_index_price_replica; |
- Disable unirgy modules using this command (<modules to uninstall> with actual module names returned by prev command) ''bin/magento module:disable --clear-static-content <modules to uninstall>'' | truncate cataloginventory_stock_status; |
- Run setup:upgrade command \\ ''bin/magento setup:upgrade'' | truncate cataloginventory_stock_status_replica;</code> |
- Run module:uninstall command \\ ''bin/magento module:uninstall --non-composer <modules to uninstall>'' | - Collect modules to disable using this command <code>bin/magento module:status| grep Unirgy_</code> |
- Run reindex commands \\ ''bin/magento indexer:reset cataloginventory_stock catalog_product_price'' \\ | - Disable unirgy modules using this command (replace <modules to uninstall> with actual module names returned by prev command) <code>bin/magento module:disable --clear-static-content <modules to uninstall></code> |
''bin/magento indexer:reindex cataloginventory_stock catalog_product_price'' | - Run setup:upgrade command <code>bin/magento setup:upgrade</code> |
| - Run module:uninstall command (replace <modules to uninstall> with actual module names returned in step 2 command) <code>bin/magento module:uninstall --non-composer <modules to uninstall></code> |
| - Run reindex commands <code>bin/magento indexer:reset cataloginventory_stock catalog_product_price |
| bin/magento indexer:reindex cataloginventory_stock catalog_product_price </code> |