Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Track the package/extension relationships (#12977)
* Track the package/extension relationships * Include the package ID in the manage view * Add all SQL schema changes * Add package_id to allowed filter fields * Check for empty install ID array, get the installed ID using 'onExtensionAfterInstall' event * Update queries to set association for en-GB package * Add data for install SQL
- Loading branch information
Showing
14 changed files
with
245 additions
and
155 deletions.
There are no files selected for viewing
6 changes: 6 additions & 0 deletions
6
administrator/components/com_admin/sql/updates/mysql/3.7.0-2016-11-24.sql
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,6 @@ | ||
ALTER TABLE `#__extensions` ADD COLUMN `package_id` int(11) NOT NULL DEFAULT 0 COMMENT 'Parent package ID for extensions installed as a package.' AFTER `extension_id`; | ||
|
||
UPDATE `#__extensions` AS `e1` | ||
INNER JOIN (SELECT `extension_id` FROM `#__extensions` WHERE `type` = 'package' AND `element` = 'pkg_en-GB') AS `e2` | ||
SET `e1`.`package_id` = `e2`.`extension_id` | ||
WHERE `e1`.`type`= 'language' AND `e1`.`element` = 'en-GB'; |
6 changes: 6 additions & 0 deletions
6
administrator/components/com_admin/sql/updates/postgresql/3.7.0-2016-11-24.sql
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,6 @@ | ||
ALTER TABLE "#__extensions" ADD COLUMN "package_id" bigint DEFAULT 0 NOT NULL; | ||
|
||
UPDATE "#__extensions" | ||
SET "package_id" = sub.extension_id | ||
FROM (SELECT "extension_id" FROM "#__extensions" WHERE "type" = 'package' AND "element" = 'pkg_en-GB') AS sub | ||
WHERE "type"= 'language' AND "element" = 'en-GB'; |
5 changes: 5 additions & 0 deletions
5
administrator/components/com_admin/sql/updates/sqlazure/3.7.0-2016-11-24.sql
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,5 @@ | ||
ALTER TABLE [#__extensions] ADD [package_id] [bigint] NOT NULL DEFAULT 0; | ||
|
||
UPDATE [#__extensions] | ||
SET [package_id] = (SELECT [extension_id] FROM [#__extensions] WHERE [type] = 'package' AND [element] = 'pkg_en-GB') | ||
WHERE [type]= 'language' AND [element] = 'en-GB'; |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Oops, something went wrong.