从Liferay 6.2到7.1.1的迁移

时间:2019-01-12 14:04:50

标签: liferay upgrade liferay-6 liferay-7

我正在尝试将Liferay6.2数据库迁移到7.1.1版本。设置数据库升级工具配置并运行db_upgrade.bat后,出现以下错误:

2019-01-12 12:52:45.959 INFO  [main][LoggingTimer:43] Completed com.liferay.portal.upgrade.v7_0_0.UpgradeMySQL#upgradeDatetimePrecision in 58896 ms
2019-01-12 12:52:45.959 INFO  [main][UpgradeProcess:107] Failed upgrade process com.liferay.portal.upgrade.v7_0_0.UpgradeMySQL in 58896 ms
2019-01-12 12:52:45.959 INFO  [main][UpgradeProcess:107] Failed upgrade process com.liferay.portal.upgrade.UpgradeProcess_7_0_0 in 85615 ms
com.liferay.portal.kernel.upgrade.UpgradeException: com.liferay.portal.kernel.upgrade.UpgradeException: java.lang.IllegalStateException: Table BookmarksEntry does not have column lastPublishDate

确切的版本是:

  • liferay-portal-6.2.0-ce-rc6
  • liferay-ce-portal-7.1.1-ga2

我正在Windows 10上使用 \ liferay-ce-portal-7.1.1-ga2 \ tools \ portal-tools-db-upgrade-client

这是我的数据库工具配置:

app-server.properties

dir=E:/Projects/MyProject/liferay-ce-portal-7.1.1-ga2/tomcat-9.0.10
extra.lib.dirs=/bin
global.lib.dir=/lib
portal.dir=/webapps/ROOT
server.detector.server.id=tomcat

portal-upgrade-database.properties

jdbc.default.driverClassName=com.mysql.jdbc.Driver
jdbc.default.url=jdbc:mysql://localhost/ec711?characterEncoding=UTF-8&useUnicode=true&serverTimezone=GMT
jdbc.default.username=root
jdbc.default.password=pass

portal-upgrade-ext.properties

liferay.home=E:/Projects/MyProject/liferay-ce-portal-7.1.1-ga2
module.framework.base.dir=E:/Projects/MyProject/liferay-ce-portal-7.1.1-ga2/osgi

有人遇到这样的事情吗?任何建议,不胜感激。

谢谢!

1 个答案:

答案 0 :(得分:1)

尝试升级时,我看到了与此错误类似的错误-这是由于MySQL版本不兼容所致。

我假定您从升级属性中将MySQL用作数据库。从Liferay's 7.1 DXP Compatibility Matrix看,经7.1认证的MySQL的唯一版本是MySQL 5.7。我相信Liferay 6.2可以使用MySQL 5.5和5.6。

确保事先备份所有内容,但尝试将数据库更新为MySQL 5.7,然后再次运行升级。