【问题标题】:What is the best practice to upgrade EXT:powermail 2.3.3 to 6.1?将 EXT:powermail 2.3.3 升级到 6.1 的最佳做法是什么?
【发布时间】:2018-09-10 21:23:29
【问题描述】:

我目前正在将 TYPO3 6.2 安装升级到 8.7。由于它是一个巨大的网站,我制作了一个副本并在那里开始升级。我已将安装从非作曲家切换到作曲家模式。

现在我需要将 EXT:powermail 从 2.3.3 更新到 6.1。

为了掌握所有数据库更改,我逐步进行了升级:

composer require in2code/powermail "^3"
./typo3cms install:generatepackagestates
./typo3cms extension:setup powermail
composer require in2code/powermail "^4"
./typo3cms cache:flush --force
./typo3cms extension:setup powermail
composer require in2code/powermail "^5"
./typo3cms cache:flush --force
./typo3cms extension:setup powermail
composer require in2code/powermail
./typo3cms cache:flush --force
./typo3cms extension:setup powermail

我现在的问题是,当我使用生产数据库对该网站进行最终升级时,如何再次进行这些数据库迁移。

目前我的方法是在最终升级之前删除 EXT:powermail 并再次对生产数据库执行上述步骤。

还有更好的建议吗?

【问题讨论】:

    标签: typo3 typo3-8.x powermail


    【解决方案1】:

    从 2.x 更新到 6.x 应该很容易。只需先使用最新的 powermail 版本更新您的系统。因为我们删除了迁移,所以您必须手动重命名 powermail 的现有数据库表:https://gist.github.com/einpraegsam/a02bb69c29aa747de4ffb613704bbd7a

    【讨论】:

    • 所以第一步是按照 Gist 中的说明进行数据库迁移,然后安装最新的 powermail 版本并更改其他数据库?或者除了表重命名之外还有其他吗?
    • 嗯,在我看来这并不重要。如果您先更新 powermail,则会自动创建空表。之后,您必须将值复制到新表中(或者如果您想确保真正拥有所有需要的字段,请删除新表)。
    猜你喜欢
    • 1970-01-01
    • 2011-02-15
    • 1970-01-01
    • 2020-10-06
    • 1970-01-01
    • 1970-01-01
    • 2019-11-15
    • 1970-01-01
    • 1970-01-01
    相关资源
    最近更新 更多