CoreFiles by mySites.guru
4.0.3-2021-09-04.sql33 lines, 1,930 bytes, from Joomla_4.2.3-Stable-Full_Package.zip
Raw History Compare with 4.2.2
md5
1b638075949e3a95d81caf3644e32001
sha1
d7d64feefed52af7111b48ed21c176d715e35446
sha256
14fe777def1cb66f261e12948aa0692b7e621a9bf46b78274db680d642864655
--
-- Delete the com_search package extension including its update site if no other
-- com_search extension exists
--
DELETE FROM "#__update_sites_extensions"
 WHERE "update_site_id" IN (SELECT "update_site_id" FROM "#__update_sites" WHERE "location" = 'https://raw.githubusercontent.com/joomla-extensions/search/main/manifest.xml')
   AND "extension_id" IN (SELECT "extension_id" FROM "#__extensions" WHERE "element" = 'pkg_search' AND "type" = 'package')
   AND (SELECT COUNT(a."extension_id")
          FROM "#__extensions" a
         WHERE (a."type" = 'component' AND a."element" = 'com_search')
            OR (a."type" = 'module' AND a."element" = 'mod_search' AND a."client_id" = 0)
            OR (a."type" = 'plugin' AND a."element" IN ('categories', 'contacts', 'content', 'newsfeeds', 'tags') AND a."folder" = 'search')
       ) = 0;

DELETE FROM "#__update_sites"
 WHERE "location" = 'https://raw.githubusercontent.com/joomla-extensions/search/main/manifest.xml'
   AND (SELECT COUNT(a."extension_id")
          FROM "#__extensions" a
         WHERE (a."type" = 'component' AND a."element" = 'com_search')
            OR (a."type" = 'module' AND a."element" = 'mod_search' AND a."client_id" = 0)
            OR (a."type" = 'plugin' AND a."element" IN ('categories', 'contacts', 'content', 'newsfeeds', 'tags') AND a."folder" = 'search')
       ) = 0;

DELETE FROM "#__extensions"
 WHERE "type" = 'package' AND "element" = 'pkg_search'
   AND (SELECT b."count"
          FROM (SELECT COUNT(a."extension_id") AS "count"
                  FROM "#__extensions" a
                 WHERE (a."type" = 'component' AND a."element" = 'com_search')
                    OR (a."type" = 'module' AND a."element" = 'mod_search' AND a."client_id" = 0)
                    OR (a."type" = 'plugin' AND a."element" IN ('categories', 'contacts', 'content', 'newsfeeds', 'tags') AND a."folder" = 'search')
               ) b
       ) = 0;

The same content is in 115 releases, Joomla 4.0.3-rc to 4.4.14. See them all, or every version of this file.