<?xml version="1.0" encoding="UTF-8"?>
<feed xmlns="http://www.w3.org/2005/Atom" xmlns:dc="http://purl.org/dc/elements/1.1/">
  <title>Issue Upgrading Database from 6.2 to 7.x</title>
  <link rel="self" href="https://liferay.dev/c/message_boards/find_thread?p_l_id=119785294&amp;threadId=115119053" />
  <subtitle>Issue Upgrading Database from 6.2 to 7.x</subtitle>
  <id>https://liferay.dev/c/message_boards/find_thread?p_l_id=119785294&amp;threadId=115119053</id>
  <updated>2026-04-04T08:04:26Z</updated>
  <dc:date>2026-04-04T08:04:26Z</dc:date>
  <entry>
    <title>RE: Issue Upgrading Database from 6.2 to 7.x</title>
    <link rel="alternate" href="https://liferay.dev/c/message_boards/find_message?p_l_id=119785294&amp;messageId=115260045" />
    <author>
      <name>Alberto Chaparro</name>
    </author>
    <id>https://liferay.dev/c/message_boards/find_message?p_l_id=119785294&amp;messageId=115260045</id>
    <updated>2019-09-11T17:33:10Z</updated>
    <published>2019-09-11T17:33:10Z</published>
    <summary type="html">Hi @Sammy,The upgrade is failing here:&lt;a href="https://github.com/liferay/liferay-portal/blob/7.0.x/portal-impl/src/com/liferay/portal/upgrade/v7_0_0/UpgradeCompanyId.java#L85"&gt;&lt;/a&gt;&lt;a href="https://github.com/liferay/liferay-portal/blob/7.0.x/portal-impl/src/com/liferay/portal/upgrade/v7_0_0/UpgradeCompanyId.java#L70"&gt;https://github.com/liferay/liferay-portal/blob/7.0.x/portal-impl/src/com/liferay/portal/upgrade/v7_0_0/UpgradeCompanyId.java#L70&lt;/a&gt;&lt;a href="https://github.com/liferay/liferay-portal/blob/7.0.x/portal-impl/src/com/liferay/portal/upgrade/v7_0_0/UpgradeCompanyId.java#L85"&gt;&lt;/a&gt;&lt;br /&gt;And it seems that, for one reason, you have a field in the database that should be bigint but it is varchar. Can you check in you 6.2 database if all those fields RatingsStats.classPk, BookmarksEntry.entryId, BookmarksFolder.folderId, ..., WikiPage.pageId are BIGINT?</summary>
    <dc:creator>Alberto Chaparro</dc:creator>
    <dc:date>2019-09-11T17:33:10Z</dc:date>
  </entry>
  <entry>
    <title>RE: Issue Upgrading Database from 6.2 to 7.x</title>
    <link rel="alternate" href="https://liferay.dev/c/message_boards/find_message?p_l_id=119785294&amp;messageId=115242104" />
    <author>
      <name>sammy fattah</name>
    </author>
    <id>https://liferay.dev/c/message_boards/find_message?p_l_id=119785294&amp;messageId=115242104</id>
    <updated>2019-09-10T10:31:39Z</updated>
    <published>2019-09-10T10:31:39Z</published>
    <summary type="html">Hi Alberto,I am currently on version 6.2 CE and I&amp;#39;m trying to upgrade my database to 7.2 CE. However, I have also tried with 7.1 and 7.0 to upgrade but received the same error message.&lt;br /&gt;Thanks</summary>
    <dc:creator>sammy fattah</dc:creator>
    <dc:date>2019-09-10T10:31:39Z</dc:date>
  </entry>
  <entry>
    <title>RE: Issue Upgrading Database from 6.2 to 7.x</title>
    <link rel="alternate" href="https://liferay.dev/c/message_boards/find_message?p_l_id=119785294&amp;messageId=115151799" />
    <author>
      <name>Alberto Chaparro</name>
    </author>
    <id>https://liferay.dev/c/message_boards/find_message?p_l_id=119785294&amp;messageId=115151799</id>
    <updated>2019-09-09T18:16:35Z</updated>
    <published>2019-09-09T18:16:35Z</published>
    <summary type="html">Hi Sammy,To be able to help you, what do you mean with 7.x? 7.0, 7.1, 7.2? CE or EE? Can you provide the exact Liferay version you are using?Thanks.</summary>
    <dc:creator>Alberto Chaparro</dc:creator>
    <dc:date>2019-09-09T18:16:35Z</dc:date>
  </entry>
  <entry>
    <title>Issue Upgrading Database from 6.2 to 7.x</title>
    <link rel="alternate" href="https://liferay.dev/c/message_boards/find_message?p_l_id=119785294&amp;messageId=115119052" />
    <author>
      <name>sammy fattah</name>
    </author>
    <id>https://liferay.dev/c/message_boards/find_message?p_l_id=119785294&amp;messageId=115119052</id>
    <updated>2019-09-09T09:57:02Z</updated>
    <published>2019-09-09T09:57:02Z</published>
    <summary type="html">Hello,&lt;br /&gt;I am trying to upgrade my postgres database from 6.2 to 7.x using the upgrade tool.&lt;br /&gt;However, I get the following error when attempting to upgrade - &lt;br /&gt;&lt;br /&gt;2019-09-09 09:47:12.057 INFO  [pool-3-thread-17][LoggingTimer:43] Completed com.liferay.portal.upgrade.util.UpgradeCompanyId$TableUpdater#call#PasswordTracker in 186 ms&lt;br /&gt;2019-09-09 09:47:12.066 INFO  [pool-3-thread-18][LoggingTimer:43] Completed com.liferay.portal.upgrade.util.UpgradeCompanyId$TableUpdater#call#PortletPreferences in 195 ms&lt;br /&gt;2019-09-09 09:47:12.105 INFO  [pool-3-thread-19][LoggingTimer:43] Completed com.liferay.portal.upgrade.util.UpgradeCompanyId$TableUpdater#call#RatingsStats in 234 ms&lt;br /&gt;2019-09-09 09:47:12.106 INFO  [main][UpgradeProcess:107] Failed upgrade process com.liferay.portal.upgrade.v7_0_0.UpgradeCompanyId in 360 ms&lt;br /&gt;2019-09-09 09:47:12.106 INFO  [main][UpgradeProcess:107] Failed upgrade process com.liferay.portal.upgrade.UpgradeProcess_7_0_0 in 1536 ms&lt;br /&gt;com.liferay.portal.kernel.upgrade.UpgradeException: com.liferay.portal.kernel.upgrade.UpgradeException: java.util.concurrent.ExecutionException: org.postgresql.util.PSQLException: ERROR: operator does not exist: character varying = bigint&lt;br /&gt;  Hint: No operator matches the given name and argument type(s). You might need to add explicit type casts.&lt;br /&gt;  Position: 99&lt;br /&gt; at com.liferay.portal.kernel.upgrade.UpgradeProcess.upgrade(UpgradeProcess.java:101)&lt;br /&gt; at com.liferay.portal.kernel.upgrade.util.UpgradeProcessUtil._upgradeProcess(UpgradeProcessUtil.java:176)&lt;br /&gt; at com.liferay.portal.kernel.upgrade.util.UpgradeProcessUtil.upgradeProcess(UpgradeProcessUtil.java:143)&lt;br /&gt; at com.liferay.portal.kernel.upgrade.util.UpgradeProcessUtil.upgradeProcess(UpgradeProcessUtil.java:125)&lt;br /&gt; at com.liferay.portal.events.StartupHelper.upgradeProcess(StartupHelper.java:151)&lt;br /&gt; at com.liferay.portal.events.StartupHelperUtil.upgradeProcess(StartupHelperUtil.java:85)&lt;br /&gt; at com.liferay.portal.tools.DBUpgrader.upgrade(DBUpgrader.java:173)&lt;br /&gt; at com.liferay.portal.tools.DBUpgrader.main(DBUpgrader.java:106)&lt;br /&gt; at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)&lt;br /&gt; at sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:62)&lt;br /&gt; at sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:43)&lt;br /&gt; at java.lang.reflect.Method.invoke(Method.java:498)&lt;br /&gt; at com.liferay.portal.tools.db.upgrade.client.DBUpgraderLauncher.main(DBUpgraderLauncher.java:55)&lt;br /&gt;Caused by: com.liferay.portal.kernel.upgrade.UpgradeException: java.util.concurrent.ExecutionException: org.postgresql.util.PSQLException: ERROR: operator does not exist: character varying = bigint&lt;br /&gt;  Hint: No operator matches the given name and argument type(s). You might need to add explicit type casts.&lt;br /&gt;  Position: 99&lt;br /&gt; at com.liferay.portal.kernel.upgrade.UpgradeProcess.upgrade(UpgradeProcess.java:101)&lt;br /&gt; at com.liferay.portal.kernel.upgrade.UpgradeProcess.upgrade(UpgradeProcess.java:142)&lt;br /&gt; at com.liferay.portal.upgrade.UpgradeProcess_7_0_0.doUpgrade(UpgradeProcess_7_0_0.java:85)&lt;br /&gt; at com.liferay.portal.kernel.upgrade.UpgradeProcess.upgrade(UpgradeProcess.java:96)&lt;br /&gt; ... 12 more&lt;br /&gt;Caused by: java.util.concurrent.ExecutionException: org.postgresql.util.PSQLException: ERROR: operator does not exist: character varying = bigint&lt;br /&gt;  Hint: No operator matches the given name and argument type(s). You might need to add explicit type casts.&lt;br /&gt;  Position: 99&lt;br /&gt; at java.util.concurrent.FutureTask.report(FutureTask.java:122)&lt;br /&gt; at java.util.concurrent.FutureTask.get(FutureTask.java:192)&lt;br /&gt; at com.liferay.portal.upgrade.util.UpgradeCompanyId.doUpgrade(UpgradeCompanyId.java:65)&lt;br /&gt; at com.liferay.portal.kernel.upgrade.UpgradeProcess.upgrade(UpgradeProcess.java:96)&lt;br /&gt; ... 15 more&lt;br /&gt;Caused by: org.postgresql.util.PSQLException: ERROR: operator does not exist: character varying = bigint&lt;br /&gt;  Hint: No operator matches the given name and argument type(s). You might need to add explicit type casts.&lt;br /&gt;  Position: 99&lt;br /&gt; at org.postgresql.core.v3.QueryExecutorImpl.receiveErrorResponse(QueryExecutorImpl.java:2412)&lt;br /&gt; at org.postgresql.core.v3.QueryExecutorImpl.processResults(QueryExecutorImpl.java:2125)&lt;br /&gt; at org.postgresql.core.v3.QueryExecutorImpl.execute(QueryExecutorImpl.java:297)&lt;br /&gt; at org.postgresql.jdbc.PgStatement.executeInternal(PgStatement.java:428)&lt;br /&gt; at org.postgresql.jdbc.PgStatement.execute(PgStatement.java:354)&lt;br /&gt; at org.postgresql.jdbc.PgStatement.executeWithFlags(PgStatement.java:301)&lt;br /&gt; at org.postgresql.jdbc.PgStatement.executeCachedSql(PgStatement.java:287)&lt;br /&gt; at org.postgresql.jdbc.PgStatement.executeWithFlags(PgStatement.java:264)&lt;br /&gt; at org.postgresql.jdbc.PgStatement.executeUpdate(PgStatement.java:244)&lt;br /&gt; at com.zaxxer.hikari.pool.ProxyStatement.executeUpdate(ProxyStatement.java:117)&lt;br /&gt; at com.zaxxer.hikari.pool.HikariProxyStatement.executeUpdate(HikariProxyStatement.java)&lt;br /&gt; at com.liferay.portal.dao.db.BaseDB.runSQL(BaseDB.java:340)&lt;br /&gt; at com.liferay.portal.dao.db.BaseDB.runSQL(BaseDB.java:310)&lt;br /&gt; at com.liferay.portal.kernel.dao.db.BaseDBProcess.runSQL(BaseDBProcess.java:41)&lt;br /&gt; at com.liferay.portal.upgrade.util.UpgradeCompanyId$TableUpdater.update(UpgradeCompanyId.java:139)&lt;br /&gt; at com.liferay.portal.upgrade.util.UpgradeCompanyId$TableUpdater.call(UpgradeCompanyId.java:121)&lt;br /&gt; at com.liferay.portal.upgrade.util.UpgradeCompanyId$TableUpdater.call(UpgradeCompanyId.java:75)&lt;br /&gt; at java.util.concurrent.FutureTask.run(FutureTask.java:266)&lt;br /&gt; at java.util.concurrent.ThreadPoolExecutor.runWorker(ThreadPoolExecutor.java:1149)&lt;br /&gt; at java.util.concurrent.ThreadPoolExecutor$Worker.run(ThreadPoolExecutor.java:624)&lt;br /&gt; at java.lang.Thread.run(Thread.java:748)&lt;br /&gt;&lt;br /&gt;I&amp;#39;ve tried looking for someone else who has had this issue but I&amp;#39;ve not been able to find another post.&lt;br /&gt;&lt;br /&gt;Any ideas?&lt;br /&gt;&lt;br /&gt;Thanks for your help!</summary>
    <dc:creator>sammy fattah</dc:creator>
    <dc:date>2019-09-09T09:57:02Z</dc:date>
  </entry>
</feed>
