Skip to content

Commit

Permalink
Add update channel for the update component
Browse files Browse the repository at this point in the history
  • Loading branch information
mbabker committed Sep 30, 2014
1 parent 9da927e commit 83d30ed
Show file tree
Hide file tree
Showing 7 changed files with 32 additions and 6 deletions.
Original file line number Diff line number Diff line change
@@ -0,0 +1,5 @@
INSERT INTO `#__update_sites` (`name`, `type`, `location`, `enabled`) VALUES
('Joomla! Update Component Update Site', 'extension', 'http://update.joomla.org/core/extensions/com_joomlaupdate.xml', 1);

INSERT INTO `#__update_sites_extensions` (`update_site_id`, `extension_id`) VALUES
((SELECT `update_site_id` FROM `#__update_sites` WHERE `name` = 'Joomla! Update Component Update Site'), (SELECT `extension_id` FROM `#__extensions` WHERE `name` = 'com_joomlaupdate'));
Original file line number Diff line number Diff line change
@@ -0,0 +1,5 @@
INSERT INTO "#__update_sites" ("name", "type", "location", "enabled") VALUES
('Joomla! Update Component Update Site', 'extension', 'http://update.joomla.org/core/extensions/com_joomlaupdate.xml', 1);

INSERT INTO "#__update_sites_extensions" ("update_site_id", "extension_id") VALUES
((SELECT "update_site_id" FROM "#__update_sites" WHERE "name" = 'Joomla! Update Component Update Site'), (SELECT "extension_id" FROM "#__extensions" WHERE "name" = 'com_joomlaupdate'));
Original file line number Diff line number Diff line change
@@ -0,0 +1,5 @@
INSERT INTO [#__update_sites] ([name], [type], [location], [enabled])
SELECT 'Joomla! Update Component Update Site', 'extension', 'http://update.joomla.org/core/extensions/com_joomlaupdate.xml', 1;

INSERT INTO [#__update_sites_extensions] ([update_site_id], [extension_id])
SELECT (SELECT [update_site_id] FROM [#__update_sites] WHERE [name] = 'Joomla! Update Component Update Site'), (SELECT [extension_id] FROM [#__extensions] WHERE [name] = 'com_joomlaupdate');
3 changes: 3 additions & 0 deletions administrator/components/com_joomlaupdate/joomlaupdate.xml
Original file line number Diff line number Diff line change
Expand Up @@ -26,5 +26,8 @@
<language tag="en-GB">language/en-GB.com_joomlaupdate.sys.ini</language>
</languages>
</administration>
<updateservers>
<server type="extension" name="Joomla! Update Component Update Site">http://update.joomla.org/core/extensions/com_joomlaupdate.xml</server>
</updateservers>
</extension>

6 changes: 4 additions & 2 deletions installation/sql/mysql/joomla.sql
Original file line number Diff line number Diff line change
Expand Up @@ -1795,7 +1795,8 @@ CREATE TABLE IF NOT EXISTS `#__update_sites` (
INSERT INTO `#__update_sites` (`update_site_id`, `name`, `type`, `location`, `enabled`, `last_check_timestamp`) VALUES
(1, 'Joomla! Core', 'collection', 'http://update.joomla.org/core/list.xml', 1, 0),
(2, 'Joomla! Extension Directory', 'collection', 'http://update.joomla.org/jed/list.xml', 1, 0),
(3, 'Accredited Joomla! Translations', 'collection', 'http://update.joomla.org/language/translationlist_3.xml', 1, 0);
(3, 'Accredited Joomla! Translations', 'collection', 'http://update.joomla.org/language/translationlist_3.xml', 1, 0),
(4, 'Joomla! Update Component Update Site', 'extension', 'http://update.joomla.org/core/extensions/com_joomlaupdate.xml', 1, 0);

-- --------------------------------------------------------

Expand All @@ -1816,7 +1817,8 @@ CREATE TABLE IF NOT EXISTS `#__update_sites_extensions` (
INSERT INTO `#__update_sites_extensions` (`update_site_id`, `extension_id`) VALUES
(1, 700),
(2, 700),
(3, 600);
(3, 600),
(4, 28);

-- --------------------------------------------------------

Expand Down
6 changes: 4 additions & 2 deletions installation/sql/postgresql/joomla.sql
Original file line number Diff line number Diff line change
Expand Up @@ -1716,7 +1716,8 @@ COMMENT ON TABLE "#__update_sites" IS 'Update Sites';
INSERT INTO "#__update_sites" ("update_site_id", "name", "type", "location", "enabled", "last_check_timestamp") VALUES
(1, 'Joomla! Core', 'collection', 'http://update.joomla.org/core/list.xml', 1, 0),
(2, 'Joomla! Extension Directory', 'collection', 'http://update.joomla.org/jed/list.xml', 1, 0),
(3, 'Accredited Joomla! Translations', 'collection', 'http://update.joomla.org/language/translationlist_3.xml', 1, 0);
(3, 'Accredited Joomla! Translations', 'collection', 'http://update.joomla.org/language/translationlist_3.xml', 1, 0),
(4, 'Joomla! Update Component Update Site', 'extension', 'http://update.joomla.org/core/extensions/com_joomlaupdate.xml', 1, 0);

--
-- Table: #__update_sites_extensions
Expand All @@ -1735,7 +1736,8 @@ COMMENT ON TABLE "#__update_sites_extensions" IS 'Links extensions to update sit
INSERT INTO "#__update_sites_extensions" ("update_site_id", "extension_id") VALUES
(1, 700),
(2, 700),
(3, 600);
(3, 600),
(4, 28);

--
-- Table: #__usergroups
Expand Down
8 changes: 6 additions & 2 deletions installation/sql/sqlazure/joomla.sql
Original file line number Diff line number Diff line change
Expand Up @@ -2753,7 +2753,9 @@ SELECT 1, 'Joomla! Core', 'collection', 'http://update.joomla.org/core/list.xml'
UNION ALL
SELECT 2, 'Joomla! Extension Directory', 'collection', 'http://update.joomla.org/jed/list.xml', 1, 0
UNION ALL
SELECT 3, 'Accredited Joomla! Translations', 'collection', 'http://update.joomla.org/language/translationlist_3.xml', 1, 0;
SELECT 3, 'Accredited Joomla! Translations', 'collection', 'http://update.joomla.org/language/translationlist_3.xml', 1, 0
UNION ALL
SELECT 4, 'Joomla! Update Component Update Site', 'extension', 'http://update.joomla.org/core/extensions/com_joomlaupdate.xml', 1, 0;

SET IDENTITY_INSERT [#__update_sites] OFF;

Expand All @@ -2775,7 +2777,9 @@ SELECT 1, 700
UNION ALL
SELECT 2, 700
UNION ALL
SELECT 3, 600;
SELECT 3, 600
UNION ALL
SELECT 4, 28;

/****** Object: Table [#__updates] ******/
SET QUOTED_IDENTIFIER ON;
Expand Down

0 comments on commit 83d30ed

Please sign in to comment.