I have a multi store Magento 2 site and I need to change the ID of one of the stores. Is there any easy way to do this? I tried to run an update query on the store table but I get and error because of foreign key constraints. It seems like there is about 150 references to the store table. Any easy way to update the store id in the store table?

  • 1
    Changing a store id in Magento is almost impossible. Pretty much every logic depends on the store id to work. You are better of creating a new store and migrating any data to it. – PedroFaria99 Aug 19 '20 at 20:45
  • I never thought about creating a new store and migrating the data over to it, that just might work. – Trevor Orr Aug 20 '20 at 14:59

Your Answer

By clicking “Post Your Answer”, you agree to our terms of service, privacy policy and cookie policy

Browse other questions tagged or ask your own question.