Question

I just upgraded to Magento 2.1.3 and I'm getting the following error message when I go to the design configuration section:

SQLSTATE[42S02]: Base table or view not found: 1146 Table 'db.design_config_grid_flat' doesn't exist, query was: SELECT COUNT(*) FROM `design_config_grid_flat` AS `main_table` WHERE (`store_website_id` = '1') AND (`store_group_id` IS NULL)

1st UPDATE:

This is what happens after I run the indexer:reindex command

enter image description here

2nd UPDATE:

This is my list of tables in the database and you can see that there is no table to drop even though I get that error message from the reindex method enter image description here

3rd UPDATE:

This is what I see when I try to run the create table sql command enter image description here

Was it helpful?

Solution

Table is missing. Run in sql console below sql query. After run sql query run php bin/magento indexer:reindex

CREATE TABLE `design_config_grid_flat` (
  `entity_id` int(10) unsigned NOT NULL COMMENT 'Entity ID',
  `store_website_id` int(11) DEFAULT NULL COMMENT 'Store_website_id',
  `store_group_id` int(11) DEFAULT NULL COMMENT 'Store_group_id',
  `store_id` int(11) DEFAULT NULL COMMENT 'Store_id',
  `theme_theme_id` varchar(255) DEFAULT NULL COMMENT 'Theme_theme_id',
  PRIMARY KEY (`entity_id`),
  KEY `DESIGN_CONFIG_GRID_FLAT_STORE_WEBSITE_ID` (`store_website_id`),
  KEY `DESIGN_CONFIG_GRID_FLAT_STORE_GROUP_ID` (`store_group_id`),
  KEY `DESIGN_CONFIG_GRID_FLAT_STORE_ID` (`store_id`),
  FULLTEXT KEY `DESIGN_CONFIG_GRID_FLAT_THEME_THEME_ID` (`theme_theme_id`)
) ENGINE=InnoDB DEFAULT CHARSET=utf8 COMMENT='design_config_grid_flat';
Licensed under: CC-BY-SA with attribution
Not affiliated with magento.stackexchange
scroll top