From 7be914e65880d26d1a8f28ef1442b692b1c2eb7d Mon Sep 17 00:00:00 2001 From: Richard Fath Date: Sun, 8 Dec 2019 23:09:05 +0100 Subject: [PATCH 1/2] Update 4.0.0-2018-08-01.sql --- .../com_admin/sql/updates/mysql/4.0.0-2018-08-01.sql | 4 ++++ 1 file changed, 4 insertions(+) diff --git a/administrator/components/com_admin/sql/updates/mysql/4.0.0-2018-08-01.sql b/administrator/components/com_admin/sql/updates/mysql/4.0.0-2018-08-01.sql index 72a50731c9444..22c2584f1ffc6 100644 --- a/administrator/components/com_admin/sql/updates/mysql/4.0.0-2018-08-01.sql +++ b/administrator/components/com_admin/sql/updates/mysql/4.0.0-2018-08-01.sql @@ -3,6 +3,10 @@ ALTER TABLE `#__ucm_content` MODIFY `core_modified_time` datetime NOT NULL; ALTER TABLE `#__ucm_content` MODIFY `core_publish_up` datetime NULL DEFAULT NULL; ALTER TABLE `#__ucm_content` MODIFY `core_publish_down` datetime NULL DEFAULT NULL; + +-- Only on MySQL: Update empty stings to null date before converting the column from varchar to datetime +UPDATE `#__ucm_content` SET `core_checked_out_time` = '0000-00-00 00:00:00' WHERE `core_checked_out_time` = ''; + ALTER TABLE `#__ucm_content` MODIFY `core_checked_out_time` datetime NULL DEFAULT NULL; ALTER TABLE `#__ucm_history` MODIFY `save_date` datetime NOT NULL; From 803a79162d6b0553c70fedbdb048ee02bbaaed0a Mon Sep 17 00:00:00 2001 From: Richard Fath Date: Mon, 9 Dec 2019 06:47:03 +0100 Subject: [PATCH 2/2] Fix typo in comment Co-Authored-By: Quy --- .../components/com_admin/sql/updates/mysql/4.0.0-2018-08-01.sql | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/administrator/components/com_admin/sql/updates/mysql/4.0.0-2018-08-01.sql b/administrator/components/com_admin/sql/updates/mysql/4.0.0-2018-08-01.sql index 22c2584f1ffc6..7a73a8e1f5f9b 100644 --- a/administrator/components/com_admin/sql/updates/mysql/4.0.0-2018-08-01.sql +++ b/administrator/components/com_admin/sql/updates/mysql/4.0.0-2018-08-01.sql @@ -4,7 +4,7 @@ ALTER TABLE `#__ucm_content` MODIFY `core_modified_time` datetime NOT NULL; ALTER TABLE `#__ucm_content` MODIFY `core_publish_up` datetime NULL DEFAULT NULL; ALTER TABLE `#__ucm_content` MODIFY `core_publish_down` datetime NULL DEFAULT NULL; --- Only on MySQL: Update empty stings to null date before converting the column from varchar to datetime +-- Only on MySQL: Update empty strings to null date before converting the column from varchar to datetime UPDATE `#__ucm_content` SET `core_checked_out_time` = '0000-00-00 00:00:00' WHERE `core_checked_out_time` = ''; ALTER TABLE `#__ucm_content` MODIFY `core_checked_out_time` datetime NULL DEFAULT NULL;