The default datetime columns (created, modified and checked_out_time) to be compatibe with mysql 8
Actual result
They still use 0000-00-00 00:00:00 as default value.
System information (as much as possible)
OS Name & Version: Mac 14.2.1
MySql Version: 5.7
PHP Version: 7.4
Joomla Version: 3.10.12
JCB Version: 3.1.39
Browser: Firefox developer edition
Additional comments
I solve it adding some extra queries in the post install script.
SET SESSION sql_mode = '';
ALTER TABLE `#__mycomponent_myview` CHANGE `created` `created` DATETIME NULL;
ALTER TABLE `#__mycomponent_myview` CHANGE `modified` `modified` DATETIME NULL;
ALTER TABLE `#__mycomponent_myview` CHANGE `checked_out_time` `checked_out_time` DATETIME NULL;
### Steps to reproduce the issue
Compile the demo component.
### Expected result
The default datetime columns (created, modified and checked_out_time) to be compatibe with mysql 8
### Actual result
They still use 0000-00-00 00:00:00 as default value.
### System information (as much as possible)
- OS Name & Version: Mac 14.2.1
- MySql Version: 5.7
- PHP Version: 7.4
- Joomla Version: 3.10.12
- JCB Version: 3.1.39
- Browser: Firefox developer edition
### Additional comments
I solve it adding some extra queries in the post install script.
```
SET SESSION sql_mode = '';
ALTER TABLE `#__mycomponent_myview` CHANGE `created` `created` DATETIME NULL;
ALTER TABLE `#__mycomponent_myview` CHANGE `modified` `modified` DATETIME NULL;
ALTER TABLE `#__mycomponent_myview` CHANGE `checked_out_time` `checked_out_time` DATETIME NULL;
```
vistamedia
added the Beta label 2024-02-18 08:43:48 +00:00
The JCB compiler has since been updated to generate MySQL 8-compatible datetime columns for Joomla 4 and later, using CURRENT_TIMESTAMP or nullable datetime fields instead of the legacy zero-date defaults.
Since this report relates to the older Joomla 3 compiler and the issue has been addressed in our modern Joomla targets, we will be closing it.
The JCB compiler has since been updated to generate **MySQL 8-compatible datetime columns** for Joomla 4 and later, using `CURRENT_TIMESTAMP` or nullable datetime fields instead of the legacy zero-date defaults.
Since this report relates to the older Joomla 3 compiler and the issue has been addressed in our modern Joomla targets, we will be closing it.
Blocking a user prevents them from interacting with repositories, such as opening or commenting on pull requests or issues. Learn more about blocking a user.
Steps to reproduce the issue
Compile the demo component.
Expected result
The default datetime columns (created, modified and checked_out_time) to be compatibe with mysql 8
Actual result
They still use 0000-00-00 00:00:00 as default value.
System information (as much as possible)
Additional comments
I solve it adding some extra queries in the post install script.
Here is an example of postflight install and update script :
The JCB compiler has since been updated to generate MySQL 8-compatible datetime columns for Joomla 4 and later, using
CURRENT_TIMESTAMPor nullable datetime fields instead of the legacy zero-date defaults.Since this report relates to the older Joomla 3 compiler and the issue has been addressed in our modern Joomla targets, we will be closing it.