如何使用Dockware容器更新Shopware到6.5版本。

huangapple go评论96阅读模式
英文:

How to Update Shopware to Version 6.5 Using Dockware Container

问题

我已经使用docker-compose.yml文件通过Dockware安装了Shopware 6.4。现在,我打算升级Shopware到6.5版本。然而,我遇到了一个问题:Shopware 6.4使用MySQL 5.7,而Shopware 6.5需要MySQL 8。

在我的情况下,我有一个数据库转储文件,并且已经设置了一个新的Dockware容器,其中包括Shopware 6.5和MySQL 8。我将数据库转储文件导入到了MySQL 8数据库中。不幸的是,这种方法并没有按预期工作,我遇到了各种PHP错误。似乎问题可能与数据库架构迁移有关,但我不确定。此外,我不确定我是否在遵循正确的Shopware升级过程。

是否有人可以提供升级过程的逐步说明?我将非常感谢任何指导,以帮助我解决这个问题。

谢谢。

英文:

I have already installed Shopware 6.4 using Dockware through the docker-compose.yml file. Now, I'm aiming to upgrade Shopware to version 6.5. However, I've encountered a challenge: Shopware 6.4 uses MySQL 5.7, while Shopware 6.5 requires MySQL 8.

In my situation, I have a database dump file, and I've set up a new Dockware container with Shopware 6.5 and MySQL 8. I imported the dump file into the MySQL 8 database. Unfortunately, this approach isn't working as expected, and I'm encountering various PHP errors. It appears that the issue might be related to database schema migration, but I'm uncertain. Additionally, I'm not confident whether I'm following the correct process to update Shopware.

Could someone provide a step-by-step explanation of the update process? I would greatly appreciate any guidance to help me navigate this situation.

Thank you.

答案1

得分: 1

在导入了来自您的6.4安装的转储后,您需要再次执行迁移。进入您的应用程序服务器容器并运行以下CLI命令:

bin/console database:migrate --all

之后,您还应该重新索引数据:

bin/console dal:refresh:index
英文:

After you imported the dump from your 6.4 installation, you have to execute the migrations again. Shell into your app servers container and run this CLI command:

bin/console database:migrate --all

You should also re-index the data afterwards:

bin/console dal:refresh:index

huangapple
  • 本文由 发表于 2023年8月10日 16:52:59
  • 转载请务必保留本文链接:https://go.coder-hub.com/76874115.html
匿名

发表评论

匿名网友

:?: :razz: :sad: :evil: :!: :smile: :oops: :grin: :eek: :shock: :???: :cool: :lol: :mad: :twisted: :roll: :wink: :idea: :arrow: :neutral: :cry: :mrgreen:

确定