From 29d03916f5856a2646f8527f22b7f6c2dcd4818d Mon Sep 17 00:00:00 2001 From: Richard Fath Date: Fri, 27 Sep 2019 11:30:30 +0200 Subject: [PATCH] Revert menu changes which should be done in separate PR --- .../com_admin/sql/updates/mysql/4.0.0-2019-03-30.sql | 4 ++-- .../com_admin/sql/updates/postgresql/4.0.0-2019-03-30.sql | 4 ++-- 2 files changed, 4 insertions(+), 4 deletions(-) diff --git a/administrator/components/com_admin/sql/updates/mysql/4.0.0-2019-03-30.sql b/administrator/components/com_admin/sql/updates/mysql/4.0.0-2019-03-30.sql index 4088f565527c4..19f845ffd6bca 100644 --- a/administrator/components/com_admin/sql/updates/mysql/4.0.0-2019-03-30.sql +++ b/administrator/components/com_admin/sql/updates/mysql/4.0.0-2019-03-30.sql @@ -1,2 +1,2 @@ -ALTER TABLE `#__menu` ADD COLUMN `publish_up` datetime NULL DEFAULT NULL; -ALTER TABLE `#__menu` ADD COLUMN `publish_down` datetime NULL DEFAULT NULL; +ALTER TABLE `#__menu` ADD COLUMN `publish_up` datetime NOT NULL DEFAULT '0000-00-00 00:00:00'; +ALTER TABLE `#__menu` ADD COLUMN `publish_down` datetime NOT NULL DEFAULT '0000-00-00 00:00:00'; diff --git a/administrator/components/com_admin/sql/updates/postgresql/4.0.0-2019-03-30.sql b/administrator/components/com_admin/sql/updates/postgresql/4.0.0-2019-03-30.sql index 79d99a6a1b9d5..f3ce56ffcb477 100644 --- a/administrator/components/com_admin/sql/updates/postgresql/4.0.0-2019-03-30.sql +++ b/administrator/components/com_admin/sql/updates/postgresql/4.0.0-2019-03-30.sql @@ -1,2 +1,2 @@ -ALTER TABLE "#__menu" ADD COLUMN "publish_up" timestamp without time zone; -ALTER TABLE "#__menu" ADD COLUMN "publish_down" timestamp without time zone; +ALTER TABLE "#__menu" ADD COLUMN "publish_up" timestamp without time zone DEFAULT '1970-01-01 00:00:00' NOT NULL; +ALTER TABLE "#__menu" ADD COLUMN "publish_down" timestamp without time zone DEFAULT '1970-01-01 00:00:00' NOT NULL;