I have moved my website files and DB from one server to another.
Now, When I am running setup:upgrade command. I am getting below error:
Updating modules: Schema creation/updates:
SQLSTATE[HY000]: General error: 1215 Cannot add foreign key constraint, query was: ALTER TABLE
quote_itemMODIFY COLUMNitem_idint(10) UNSIGNED NOT NULL AUTO_INCREMENT COMMENT "Item Id", ADD CONSTRAINT PRIMARY KEY (item_id), ADD CONSTRAINTQUOTE_ITEM_PARENT_ITEM_ID_QUOTE_ITEM_ITEM_IDFOREIGN KEY (parent_item_id) REFERENCESquote_item(item_id) ON DELETE CASCADE, ADD CONSTRAINTQUOTE_ITEM_QUOTE_ID_QUOTE_ENTITY_IDFOREIGN KEY (quote_id) REFERENCESquote(entity_id) ON DELETE CASCADE, ADD CONSTRAINTQUOTE_ITEM_STORE_ID_STORE_STORE_IDFOREIGN KEY (store_id) REFERENCESstore(store_id) ON DELETE SET NULL, ADD INDEXQUOTE_ITEM_PARENT_ITEM_ID(parent_item_id), ADD INDEXQUOTE_ITEM_PRODUCT_ID(product_id), ADD INDEXQUOTE_ITEM_QUOTE_ID(quote_id), ADD INDEXQUOTE_ITEM_STORE_ID(store_id)
Please help to get rid of this error.