Skip to content

Commit

Permalink
Increase size of the "link" field in com_newsfeeds (joomla#11614)
Browse files Browse the repository at this point in the history
* increased limit of characters for the URL

To resolve joomla#11612

* increased limit of characters for the feed URL

Increased limit of characters for the Feed URL to fix issue joomla#11612

* increased limit of characters for the feed URL

To resolve joomla#11612

* increased limit of characters for the feed URL

To resolve joomla#11612

* increased limit of characters for the feed URL

To fix joomla#11612

* increased limit of characters for the feed URL

To fix joomla#11612

* increased limit of characters for the feed URL

To fix joomla#11612

* fixed syntax

* fixed syntax SQL Azure

* fixed syntax

* Fixed mistake in comment

Updated comment from
"Set if article is featured" to "Set if contact is featured"

* Fixed mistake in comment

Fixed, there was "article" instead of "contact"

* Updated mysql comment to reflect rules

* Updated SQL comment to reflect rules

* Updated SQL comment to reflect rules

* Resolving merge conflicts

to fix merge conflicts after joomla#11617

* Resolving merge conflicts

* Applying patch to increase size of link field

After resolving merge issues, this commit apply again the patch to increase the size of the link field.
  • Loading branch information
jeckodevelopment authored and rdeutz committed Aug 16, 2016
1 parent 37cad9c commit dcbe4e5
Show file tree
Hide file tree
Showing 7 changed files with 21 additions and 6 deletions.
Original file line number Diff line number Diff line change
@@ -0,0 +1,5 @@
--
-- Increasing size of the URL field in com_newsfeeds
--

ALTER TABLE `#__newsfeeds` MODIFY `link` VARCHAR(2048) NOT NULL;
Original file line number Diff line number Diff line change
@@ -0,0 +1,5 @@
--
-- Increasing size of the URL field in com_newsfeeds
--

ALTER TABLE "#__newsfeeds" ALTER COLUMN "link" TYPE character varying(2048);
Original file line number Diff line number Diff line change
@@ -0,0 +1,5 @@
--
-- Increasing size of the URL field in com_newsfeeds
--

ALTER TABLE [#__newsfeeds] ALTER COLUMN [link] [nvarchar](2048) NOT NULL;
Original file line number Diff line number Diff line change
Expand Up @@ -7,7 +7,7 @@ CREATE TABLE IF NOT EXISTS `#__newsfeeds` (
`id` int(10) unsigned NOT NULL AUTO_INCREMENT,
`name` varchar(100) NOT NULL DEFAULT '',
`alias` varchar(400) CHARACTER SET utf8mb4 COLLATE utf8mb4_bin NOT NULL DEFAULT '',
`link` varchar(200) NOT NULL DEFAULT '',
`link` varchar(2048) NOT NULL DEFAULT '',
`published` tinyint(1) NOT NULL DEFAULT 0,
`numarticles` int(10) unsigned NOT NULL DEFAULT 1,
`cache_time` int(10) unsigned NOT NULL DEFAULT 3600,
Expand Down
4 changes: 2 additions & 2 deletions installation/sql/mysql/joomla.sql
Original file line number Diff line number Diff line change
Expand Up @@ -290,7 +290,7 @@ CREATE TABLE IF NOT EXISTS `#__contact_details` (
`metakey` text NOT NULL,
`metadesc` text NOT NULL,
`metadata` text NOT NULL,
`featured` tinyint(3) unsigned NOT NULL DEFAULT 0 COMMENT 'Set if article is featured.',
`featured` tinyint(3) unsigned NOT NULL DEFAULT 0 COMMENT 'Set if contact is featured.',
`xreference` varchar(50) NOT NULL COMMENT 'A reference to enable linkages to external data sets.',
`publish_up` datetime NOT NULL DEFAULT '0000-00-00 00:00:00',
`publish_down` datetime NOT NULL DEFAULT '0000-00-00 00:00:00',
Expand Down Expand Up @@ -1433,7 +1433,7 @@ CREATE TABLE IF NOT EXISTS `#__newsfeeds` (
`id` int(10) unsigned NOT NULL AUTO_INCREMENT,
`name` varchar(100) NOT NULL DEFAULT '',
`alias` varchar(400) CHARACTER SET utf8mb4 COLLATE utf8mb4_bin NOT NULL DEFAULT '',
`link` varchar(200) NOT NULL DEFAULT '',
`link` varchar(2048) NOT NULL DEFAULT '',
`published` tinyint(1) NOT NULL DEFAULT 0,
`numarticles` int(10) unsigned NOT NULL DEFAULT 1,
`cache_time` int(10) unsigned NOT NULL DEFAULT 3600,
Expand Down
4 changes: 2 additions & 2 deletions installation/sql/postgresql/joomla.sql
Original file line number Diff line number Diff line change
Expand Up @@ -299,7 +299,7 @@ CREATE INDEX "#__contact_details_idx_featured_catid" ON "#__contact_details" ("f
CREATE INDEX "#__contact_details_idx_language" ON "#__contact_details" ("language");
CREATE INDEX "#__contact_details_idx_xreference" ON "#__contact_details" ("xreference");

COMMENT ON COLUMN "#__contact_details"."featured" IS 'Set if article is featured.';
COMMENT ON COLUMN "#__contact_details"."featured" IS 'Set if contact is featured.';
COMMENT ON COLUMN "#__contact_details"."xreference" IS 'A reference to enable linkages to external data sets.';

--
Expand Down Expand Up @@ -1372,7 +1372,7 @@ CREATE TABLE "#__newsfeeds" (
"id" serial NOT NULL,
"name" varchar(100) DEFAULT '' NOT NULL,
"alias" varchar(100) DEFAULT '' NOT NULL,
"link" varchar(200) DEFAULT '' NOT NULL,
"link" varchar(2048) DEFAULT '' NOT NULL,
"published" smallint DEFAULT 0 NOT NULL,
"numarticles" bigint DEFAULT 1 NOT NULL,
"cache_time" bigint DEFAULT 3600 NOT NULL,
Expand Down
2 changes: 1 addition & 1 deletion installation/sql/sqlazure/joomla.sql
Original file line number Diff line number Diff line change
Expand Up @@ -2229,7 +2229,7 @@ CREATE TABLE [#__newsfeeds](
[id] [bigint] IDENTITY(1,1) NOT NULL,
[name] [nvarchar](100) NOT NULL DEFAULT '',
[alias] [nvarchar](255) NOT NULL,
[link] [nvarchar](200) NOT NULL DEFAULT '',
[link] [nvarchar](2048) NOT NULL DEFAULT '',
[published] [smallint] NOT NULL DEFAULT 0,
[numarticles] [bigint] NOT NULL DEFAULT 1,
[cache_time] [bigint] NOT NULL DEFAULT 3600,
Expand Down

0 comments on commit dcbe4e5

Please sign in to comment.