I just tried to convert my database from SQLite to MySQL. Everything seemed to be progressing well until I was greeted by the error statements copied below. Seems that there is an issue with the “datetime format”. Alas, I’m not sure how to address this. Could somebody please have a look and perhpas provide some guidance so that I can overcome this issue? Many thanks in advance!
In AbstractMySQLDriver.php line 125:
An exception occurred while executing 'INSERT INTO `oc_dashboard_settings` (`widget_id`, `user_id`, `position`, `settings`, `enabled`) VALUES(?, ?, ?, ?
, ?)' with params ["clock", "heviiguy", "{\"x\":\"5\",\"y\":\"3\",\"width\":\"2\",\"height\":\"2\"}", "[]", ""]:
SQLSTATE[22007]: Invalid datetime format: 1366 Incorrect integer value: '' for column `heviiklowd`.`oc_dashboard_settings`.`enabled` at row 1
In PDOStatement.php line 143:
SQLSTATE[22007]: Invalid datetime format: 1366 Incorrect integer value: '' for column `heviiklowd`.`oc_dashboard_settings`.`enabled` at row 1
In PDOStatement.php line 141:
SQLSTATE[22007]: Invalid datetime format: 1366 Incorrect integer value: '' for column `heviiklowd`.`oc_dashboard_settings`.`enabled` at row 1
Nextcloud version : 16.0.0
Operating system and version : Fedora 29
Apache or nginx version : Apache 2.4.39
PHP version : 7.2.18
MySQL database collation: utf8mb4_general_ci