Magento 2 : Manually delete a design config from mysql
-
23-01-2021 - |
質問
What tables would I remove rows from if I needed to manually remove design configuration rows from the content > design > configuration
page in the Magento 2.2.3 admin panel
We had themes manually removed from the themes table in the database which of course is not the magento way so now I just need to get back on track and fix this so wanted to figure out how to fully remove the entries in the design configuration page.
解決
Go to your theme
table and delete the entry for your created theme, remember the id of the theme from here.
Then go to your core_config_data
table and search for theme and you will get path records like design/theme/theme_id
replace your default theme id in it.
Do remember to flush cache using;
php bin/magento cache:flush
EDIT :
The final issue was with indexers, so don't forget to reindex your indexes to update your design configuration grid using following command ;
php bin/magento indexer:reindex