Moodle 3.9 Upgrade Error: Licenses

Updated

When upgrading an existing Moodle instance to 3.9.0, you may encounter an error regarding the license database not existing.

Find the following file:

/lib/licenselib.php

Around line 232, beginning with "$records", comment line 232 to 241. 

Proceed to upgrade Moodle.

After a successful upgrade, uncomment these lines.