I upgraded alfresco from 4.0 to 5.2 as you said. Then I start it and there is no errors. And my DataBase has 101 tables (like in 4.0 version). But when I install alfresco 5.2 from box, it's DataBase has 74 tables. Is it normally? I ask it? because I want to add beCPG extention, and in logs I see
2017-10-11 16:13:45,966 ERROR [org.alfresco.repo.domain.schema.SchemaBootstrap] [localhost-startStop-1] Statement execution failed:
SQL: INSERT IGNORE INTO alf_qname (ns_id,version,local_name) SELECT id,0, 'labelingLabelingTemplate' FROM alf_namespace WHERE uri = 'http://www.bcpg.fr/model/quality/1.0'
Error: ОШИБКА: ошибка синтаксиса (примерное положение: "IGNORE")
And when I update empty alfresco 5.2 there are no errors.
I execute this script mannually without IGNORE and the row was added. Then I run alfresco Server and it's ok, but in solr.log I see an error: Model Tracking Failed. What does it mean?