Open alexdruk opened 8 years ago
There are a few other TIMESTAMP fields that are set to DEFAULT NULL and need to be fixed as well.
Also it seems that most of them should be replaced with DATETIME type and that requires adding new version.
Please fork the project, make a change and submit a pull request.
from make: Upgrading from v.1 to v.35
MySQL version 5.7.9
the error when executing
$versions[2]['up'][] = 'ALTER TABLE u_users ADD last_accessed TIMESTAMP';
Proposed: change line 758 of dbupgrade.php from
$versions[2]['up'][] = 'ALTER TABLE u_users ADD last_accessed TIMESTAMP';
to$versions[2]['up'][] = 'ALTER TABLE u_users ADD last_accessed TIMESTAMP DEFAULT CURRENT_TIMESTAMP';