From 0e13cd93853773843a5bffeeabf8220cda07782e Mon Sep 17 00:00:00 2001 From: wilsonge Date: Sun, 4 Jul 2021 02:57:56 +0100 Subject: [PATCH] Make asset id column have a default value --- component/admin/sql/install/mysql/install.sql | 2 +- component/admin/sql/updates/mysql/4.1.0.sql | 1 + localise.xml | 2 +- 3 files changed, 3 insertions(+), 2 deletions(-) create mode 100644 component/admin/sql/updates/mysql/4.1.0.sql diff --git a/component/admin/sql/install/mysql/install.sql b/component/admin/sql/install/mysql/install.sql index 4ce6b060..3e018ebe 100644 --- a/component/admin/sql/install/mysql/install.sql +++ b/component/admin/sql/install/mysql/install.sql @@ -1,6 +1,6 @@ CREATE TABLE IF NOT EXISTS `#__localise` ( `id` int(11) unsigned NOT NULL AUTO_INCREMENT, - `asset_id` int(11) NOT NULL, + `asset_id` int unsigned NOT NULL DEFAULT 0 COMMENT 'FK to the #__assets table.', `path` varchar(255) NOT NULL, `checked_out` int(10) unsigned NOT NULL DEFAULT '0', `checked_out_time` datetime NOT NULL DEFAULT '0000-00-00 00:00:00', diff --git a/component/admin/sql/updates/mysql/4.1.0.sql b/component/admin/sql/updates/mysql/4.1.0.sql new file mode 100644 index 00000000..b33ae84b --- /dev/null +++ b/component/admin/sql/updates/mysql/4.1.0.sql @@ -0,0 +1 @@ +ALTER TABLE `#__localise` MODIFY `asset_id` int unsigned NOT NULL DEFAULT 0 COMMENT 'FK to the #__assets table.'; diff --git a/localise.xml b/localise.xml index 43c008eb..30aafd21 100644 --- a/localise.xml +++ b/localise.xml @@ -8,7 +8,7 @@ (C) 2020 Open Source Matters admin@joomla.org https://github.com/joomla-projects/com_localise - 4.0.38-dev + 4.1.0-dev http://www.gnu.org/licenses/gpl-2.0.html GNU/GPL COM_LOCALISE_XML_DESCRIPTION install.php