Notice: Undefined index: PK_CMS_PAGE in \vendor\magento\framework\EntityManager\EntityMetadata.php on line 96

I shifted my site from server to local. But it shows an error like this: Notice: Undefined index: PK_CMS_PAGE in \vendor\magento\framework\EntityManager\EntityMetadata.php on line 96 can anyone please suggest me how to fix this. Note: I already browse about the issue, and found the solution as the primary key of CMS_PAGE may be missed. But my…