diff --git a/administrator/components/com_admin/sql/updates/mysql/4.0.0-2018-03-05.sql b/administrator/components/com_admin/sql/updates/mysql/4.0.0-2018-03-05.sql new file mode 100644 index 0000000000000..d84f23c5c9b7a --- /dev/null +++ b/administrator/components/com_admin/sql/updates/mysql/4.0.0-2018-03-05.sql @@ -0,0 +1 @@ +ALTER TABLE `#__modules` CHANGE `content` `content` TEXT NULL; diff --git a/administrator/components/com_admin/sql/updates/postgresql/4.0.0-2018-03-05.sql b/administrator/components/com_admin/sql/updates/postgresql/4.0.0-2018-03-05.sql new file mode 100644 index 0000000000000..dbab0bc9ecbe8 --- /dev/null +++ b/administrator/components/com_admin/sql/updates/postgresql/4.0.0-2018-03-05.sql @@ -0,0 +1 @@ +ALTER TABLE "#__modules" ALTER COLUMN "content" DROP NOT NULL; diff --git a/installation/sql/mysql/joomla.sql b/installation/sql/mysql/joomla.sql index 5ea362f83acc7..7a1c86e8819d7 100644 --- a/installation/sql/mysql/joomla.sql +++ b/installation/sql/mysql/joomla.sql @@ -1467,7 +1467,7 @@ CREATE TABLE IF NOT EXISTS `#__modules` ( `asset_id` int(10) unsigned NOT NULL DEFAULT 0 COMMENT 'FK to the #__assets table.', `title` varchar(100) NOT NULL DEFAULT '', `note` varchar(255) NOT NULL DEFAULT '', - `content` text NOT NULL DEFAULT '', + `content` text NULL, `ordering` int(11) NOT NULL DEFAULT 0, `position` varchar(50) NOT NULL DEFAULT '', `checked_out` int(10) unsigned NOT NULL DEFAULT 0, diff --git a/installation/sql/postgresql/joomla.sql b/installation/sql/postgresql/joomla.sql index f232ff75f8138..9ac00bef058e6 100644 --- a/installation/sql/postgresql/joomla.sql +++ b/installation/sql/postgresql/joomla.sql @@ -1441,7 +1441,7 @@ CREATE TABLE IF NOT EXISTS "#__modules" ( "asset_id" bigint DEFAULT 0 NOT NULL, "title" varchar(100) DEFAULT '' NOT NULL, "note" varchar(255) DEFAULT '' NOT NULL, - "content" text DEFAULT '' NOT NULL, + "content" text, "ordering" bigint DEFAULT 0 NOT NULL, "position" varchar(50) DEFAULT '' NOT NULL, "checked_out" integer DEFAULT 0 NOT NULL,