Skip to content

Commit

Permalink
Make asset id column have a default value
Browse files Browse the repository at this point in the history
  • Loading branch information
wilsonge committed Jul 10, 2021
1 parent 1da5baf commit 0e13cd9
Show file tree
Hide file tree
Showing 3 changed files with 3 additions and 2 deletions.
2 changes: 1 addition & 1 deletion component/admin/sql/install/mysql/install.sql
Original file line number Diff line number Diff line change
@@ -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',
Expand Down
1 change: 1 addition & 0 deletions component/admin/sql/updates/mysql/4.1.0.sql
Original file line number Diff line number Diff line change
@@ -0,0 +1 @@
ALTER TABLE `#__localise` MODIFY `asset_id` int unsigned NOT NULL DEFAULT 0 COMMENT 'FK to the #__assets table.';
2 changes: 1 addition & 1 deletion localise.xml
Original file line number Diff line number Diff line change
Expand Up @@ -8,7 +8,7 @@
<copyright>(C) 2020 Open Source Matters</copyright>
<authorEmail>admin@joomla.org</authorEmail>
<authorUrl>https://github.com/joomla-projects/com_localise</authorUrl>
<version>4.0.38-dev</version>
<version>4.1.0-dev</version>
<license>http://www.gnu.org/licenses/gpl-2.0.html GNU/GPL</license>
<description>COM_LOCALISE_XML_DESCRIPTION</description>
<scriptfile>install.php</scriptfile>
Expand Down

0 comments on commit 0e13cd9

Please sign in to comment.