The log file suggests that the Moodle 3.6.2 source code is trying to use the Moodle 3.5.2 database without first upgrading it.
When you change to the Moodle 3.6.2 source code folder it should detect the version from the database, see the older version and redirect to the upgrade page -- /admin/index.php -- which says "Upgrading Moodle database from version 3.5.2 (Build: 20180910) (2018051702.00) to 3.6.2 (Build: 20190114) (2018120302.00)". Did that not happen?
Check the version in the database, e.g. with SELECT name, value mdl FROM_config WHERE name = 'version'. If it's 3.5.2 it should be "2018051702", if it's 3.6.2 it would be "2018120302". But if it is 3.6.2 something went wrong because the database is missing some changes that should be performed by the upgrade.
You can perform the upgrade from the command line so it could be worth trying but you may get the same results.
If the database thinks it is 3.6.2 but you're still getting this error I would start the upgrade process from scratch and note any errors or unusual messages.