-
Notifications
You must be signed in to change notification settings - Fork 2.1k
New issue
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
Error updating schema on upgrade to 10.0.3/Ubuntu 16.04 ALTER TABLE oc_calendarsubscriptions #29445
Comments
Same happens using occ upgrade from the command line: SQLSTATE[42000]: Syntax error or access violation: 1067 Invalid default value for 'lastmodified' |
Used the suggested fix provided by TheFiZi commented on 24 Sep I am using MariaDB-10.2 as my provider of MySQL. |
As you have found #28695 which is still open and duplicated by the issue here i'm closing this for now. The breaking change of MariaDB 10.2.7+ will be worked around with the upcoming oC 10.0.4 with #29240 If you can't wait for oC 10.0.4 you might want to try to patch the files manually with https://github.com/owncloud/core/pull/29240/files (One new files and 5 added lines to an existing file). |
This thread has been automatically locked since there has not been any recent activity after it was closed. Please open a new issue for related bugs. |
Upgrade to 10.0.0.3 on Ubuntu failed with following issue:
Updating database schema
Doctrine\DBAL\Exception\DriverException: An exception occurred while executing 'ALTER TABLE oc_calendarsubscriptions CHANGE
lastmodified
lastmodified INT UNSIGNED DEFAULT NULL NOT NULL': SQLSTATE[42000]: Syntax error or access violation: 1067 Invalid default value for 'lastmodified'Steps to reproduce
Expected behaviour
Upgrade should happen and normal service resume
Actual behaviour
This error:
Updating database schema
Doctrine\DBAL\Exception\DriverException: An exception occurred while executing 'ALTER TABLE oc_calendarsubscriptions CHANGE
lastmodified
lastmodified INT UNSIGNED DEFAULT NULL NOT NULL': SQLSTATE[42000]: Syntax error or access violation: 1067 Invalid default value for 'lastmodified'Server configuration
Ubuntu 16.04
Apache 2
MySQL (I assume)
php7
10.0.3
Updated from an older ownCloud or fresh install:
Upgrade
Where did you install ownCloud from:
Owncloud's own repos
Signing status (ownCloud 9.0 and above):
ownCloud or one of the apps require upgrade - only a limited number of commands are available
You may use your browser or the occ upgrade command to do the upgrade
{
"system": {
"maintenance": false,
"instanceid": "ocy9nuzuyxxw",
"datadirectory": "/export/vol/owncloud/data",
"mail_domain": "bevteccom.co.uk",
"mail_smtpmode": "smtp",
"mail_smtphost": "192.168.200.10",
"mail_smtpport": 25,
"passwordsalt": "REMOVED SENSITIVE VALUE",
"secret": "REMOVED SENSITIVE VALUE",
"trusted_domains": [
"gabrielle.bevteccom.co.uk",
"gabrielle"
],
"overwrite.cli.url": "http://gabrielle/owncloud",
"dbtype": "mysql",
"version": "9.1.6.2",
"logtimezone": "UTC",
"installed": true,
"theme": "",
"loglevel": 2,
"trashbin_retention_obligation": "auto",
"updatechecker": false,
"dbname": "owncloud",
"dbhost": "127.0.0.1",
"dbuser": "REMOVED SENSITIVE VALUE",
"dbpassword": "REMOVED SENSITIVE VALUE"
}
}
List of activated apps:
Are you using external storage, if yes which one: local/smb/sftp/...
Are you using encryption: yes/no
Are you using an external user-backend, if yes which one: LDAP/ActiveDirectory/Webdav/...
LDAP configuration (delete this part if not used)
Client configuration
Browser:
Operating system:
Logs
Web server error log
ownCloud log (data/owncloud.log)
Browser log
The text was updated successfully, but these errors were encountered: