We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
from make: Upgrading from v.1 to v.35
[ERR] Caught exception: Can't execute query: Invalid default value for 'last_accessed' make[1]: *** [updatedb] Error 1 make: *** [updateusers] Error 2
MySQL version 5.7.9
the error when executing $versions[2]['up'][] = 'ALTER TABLE u_users ADD last_accessed TIMESTAMP';
$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';
$versions[2]['up'][] = 'ALTER TABLE u_users ADD last_accessed TIMESTAMP DEFAULT CURRENT_TIMESTAMP';
The text was updated successfully, but these errors were encountered:
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.
Sorry, something went wrong.
Please fork the project, make a change and submit a pull request.
Second attemp to fix dbupgrade, issue StartupAPI#236
3f12338
Merge pull request #241 from alexdruk/master
346df10
fixing dbupgrade.php, issue #236
No branches or pull requests
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';
The text was updated successfully, but these errors were encountered: