CoreFiles by mySites.guru
6.0.0-2025-09-26.sql33 lines, 847 bytes, from Joomla_6.0.2-Stable-Full_Package.zip
Raw History Compare with 6.0.1
md5
28fa65b533becf7d941f9f6ff1840cca
sha1
30a7fcce16ba35a15c604a7b64524f846a206a7d
sha256
7b0ebe7ade32b6fbc6421a72247e7481dafea4720b1fd554a9b41a13268f5af2
-- Update content types for lookup tags

UPDATE "#__content_types"
SET "content_history_options" = jsonb_set(
	"content_history_options"::jsonb,
	'{displayLookup}',
	"content_history_options"::jsonb->'displayLookup' ||
		jsonb_build_object(
		'sourceColumn', 'tags',
		'targetTable', '#__tags',
		'targetColumn', 'id',
		'displayColumn', 'title'
		)
	)
WHERE "type_alias" IN (
		 'com_content.article',
		 'com_contact.contact',
		 'com_newsfeeds.newsfeed',
		 'com_content.category',
		 'com_contact.category',
		 'com_newsfeeds.category',
		 'com_banners.category',
		 'com_users.category'
	)
AND NOT EXISTS (
	SELECT * FROM jsonb_array_elements("content_history_options"::jsonb->'displayLookup')
	WHERE value = jsonb_build_object(
		'sourceColumn', 'tags',
		'targetTable', '#__tags',
		'targetColumn', 'id',
		'displayColumn', 'title'
		)
	);

The same content is in 41 releases, Joomla 6.0.0-rc4 to 6.2.1-rc1. See them all, or every version of this file.