I am trying to migrate a Liferay6.2 database to 7.1.1 version. After setting up the database-upgrade-tool configuration and running db_upgrade.bat, I got the following error:
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
Exact versions are:
- liferay-portal-6.2.0-ce-rc6
- liferay-ce-portal-7.1.1-ga2
I am using \liferay-ce-portal-7.1.1-ga2\tools\portal-tools-db-upgrade-client on Windows 10.
Here are my db-tool configs:
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
Did anyone experience something like this? Any advice much appreciated.
Thank you!