Table 'openemr.modules' doesn't exist

I am trying to migrate sql database from 4.1.2 to 5.2 and am getting the Table ‘openemr.modules’ doesn’t exist when i load the http://127.0.0.1/openemr/sql_upgrade.php script.
How can I solve this ?

hi @ayukaphanuel, did you select upgrading from 4.1.2 when you ran the upgrade script?

Even if so you should probably retry and make sure you select that version. It’s in the sql/4_1_2-to-4_2_0_upgrade.sql script so it should be created.

Hi @stephenwaite. When I run the sql_upgrade script I am not presented with any page to select the version. I first encounter this error.

hi @ayukaphanuel, could you post a screenshot of the upgrade page? thanks