Emoncms upgrade from 8.4 to 9.8 database update fails


I upgraded Emoncms from 8.4 to 9.8 and the database update tries to do:
Todo: These changes need to be applied
Database schema

ALTER TABLE feeds MODIFY time int(10);;
ALTER TABLE input MODIFY time int(10);;
It is not successful since it tries to do it over and over again.

So i tried to do it from phpmyadm and it fails with error:
“1264 - Out of range value for column ‘time’ at row 1”
Currently the schema shows that ‘time’ is datetime not integer.

All feeds seems to be working and I can access the history data, so the problem is not crucial.

Emoncms 9.8.28
Ubuntu 16.04.1
Apache 2.4.18
Redis 3.0.6
MySQL 5.7.21
PHP 7.0.28

I would be grateful for any help.

UPDATE: The feeds do not get updated. Inputs page show data but feeds do not. Probably because the feeds schema is not correct.