I was having old tridion 2009 trigger, this is the code:
CREATE TRIGGER My_TABLE ON [ITEMS]
FOR INSERT
AS
INSERT INTO My_TABLE(ACTION, PUBLICATION_ID, ITEM_REFERENCE_ID, ITEM_TYPE, LAST_PUBLISHED_DATE, URL, SCHEMA_ID)
SELECT 'ADD', PUBLICATION_ID, ITEM_REFERENCE_ID, ITEM_TYPE, LAST_PUBLISHED_DATE, URL, SCHEMA_ID
FROM inserted
In tridion 2009 URL and SCHEMA_ID where part of ITEMS table, however when we upgrade to Tridion 2011 SP1, these columns do no longer exist in the ITEMS table.
SCHEMA_ID is moved to the COMPONENT table, I am little curious how to get the URL for each type of items (page, component etc. do we need to use link_info table to get url)
Just let me know which table would be used to get the URL as it was in ITEMS table before
Thanks.