When I'm trying to upgrade 8.3.6810 to 8.5.7458 I get this error from so_log -file
System.Exception: Field flags [Int] in table ej_category had type 17 when this code was generated, but is Int in the database. This is not compatible and the client cannot run.
What's causing this? How can I circumvent or fix it?