
	# Page IDs to update slug history
    select id into @festPageId from page where name = '/racing-highlights/st-leger-festival/';
    select id into @hospPageId from page where name = '/restaurants-and-hospitality/st-leger-hospitality/';
    select id into @histPageId from page where name = '/doncaster-racecourse/st-leger-history/';

    # Insert slug history
    insert into slug_history (slug, update_date, slug_type) values ('/racing-highlights/the-william-hill-st-leger-festival/', now(), 2);
    SET @festSlugId = LAST_INSERT_ID();

    insert into slug_history (slug, update_date, slug_type) values ('/restaurants-and-hospitality/william-hill-st-leger-hospitality/', now(), 2);
    SET @hospSlugId = LAST_INSERT_ID();

    insert into slug_history (slug, update_date, slug_type) values ('/doncaster-racecourse/william-hill-st-leger-history/', now(), 2);
    SET @histSlugId = LAST_INSERT_ID();

    # Insert into page slug history
    insert into page_slug_history (slug_history_id, page_id) values (@festSlugId, @festPageId);
    insert into page_slug_history (slug_history_id, page_id) values (@hospSlugId, @hospPageId);
    insert into page_slug_history (slug_history_id, page_id) values (@histSlugId, @histPageId);

