Both sides previous revision
Previous revision
Next revision
|
Previous revision
|
udropship:umarketplace:disable_unirgy_modules [2023/06/06 10:12] wtsergo |
udropship:umarketplace:disable_unirgy_modules [2023/06/06 10:41] (current) wtsergo [Disable] |
===== M2: Instructions to enable/disable unirgy module ===== | ===== M2: Instructions to enable/disable unirgy module ===== |
| |
- Truncate these tables (or remove rows with udropship_vendor!=0): \\ | ==== Notes ==== |
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;'' \\ | |
| |
- Collect modules to disable using this command \\ | 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. |
''bin/magento module:status| grep Unirgy_'' \\ | |
| |
- Disable unirgy modules using this command (<uninstalled modules> with actual module names returned by prev command) | ==== 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 <code>truncate catalog_product_index_price; |
| truncate catalog_product_index_price_replica; |
| truncate cataloginventory_stock_status; |
| truncate cataloginventory_stock_status_replica;</code> |
| - Collect modules to disable using this command <code>bin/magento module:status| grep Unirgy_</code> |
| - 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> |
| - 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> |