? Pending

User tests: Successful: Unsuccessful:

avatar richard67
richard67
18 Mar 2020

Pull Request for Issue #28385 .

Summary of Changes

Use old pseudo null date in update script 4.0.0-2019-07-02.sql for checked out time, because the real null date value change is done with script 4.0.0-2019-10-06.sql, which runs after the previously mentioned one.

Testing Instructions

Has to be tested with MySQL (or MariaDB) and PostgreSQL.

Testers please report back which of these database types you have tested.

  1. Install a fresh copy of 3.10 nightly or a git clone of the current 3.10-dev branch (it doesn't matter if with or without any testing sample data).
  2. Go to the Joomla Update Component component config and set the URL to following custom URL: https://test5.richard-fath.de/next_major_list_pr-28391.xml, and the status to "development".
  3. Update to Joomla 4.0.
  4. When the update has finished, log in to backend.

Expected result

Update succeeds (except of the missing template message at the first login to the backend, which is normal).

Actual result

Update fails with SQL error "Column 'checked_out_time' cannot be null", and the CMS is broken, see issue #28385 .

Additional information

The diff clearly shows a difference between the update script for MySQL and the one for PostgreSQL in the ordering value for the inserted record.

For fixing such differences I am already on the way to prepare a PR, but it might be weekend until it will be ready.

Documentation Changes Required

None.

avatar richard67 richard67 - open - 18 Mar 2020
avatar richard67 richard67 - change - 18 Mar 2020
Status New Pending
avatar joomla-cms-bot joomla-cms-bot - change - 18 Mar 2020
Category SQL Administration com_admin Postgresql
avatar richard67 richard67 - change - 18 Mar 2020
The description was changed
avatar richard67 richard67 - edited - 18 Mar 2020
avatar richard67 richard67 - change - 18 Mar 2020
Title
[4.0] [WiP] Fix SQL error "Column 'checked_out_time' cannot be null" when updating the CMS
[4.0] Fix SQL error "Column 'checked_out_time' cannot be null" when updating the CMS
avatar richard67 richard67 - edited - 18 Mar 2020
avatar wilsonge wilsonge - change - 18 Mar 2020
Status Pending Fixed in Code Base
Closed_Date 0000-00-00 00:00:00 2020-03-18 18:39:33
Closed_By wilsonge
Labels Added: ?
avatar wilsonge wilsonge - close - 18 Mar 2020
avatar wilsonge wilsonge - merge - 18 Mar 2020
avatar wilsonge
wilsonge - comment - 18 Mar 2020

Thanks! Nice work!

avatar richard67
richard67 - comment - 18 Mar 2020

Thanks, too.

Add a Comment

Login with GitHub to post a comment