Missed Team ’24? Catch up on announcements here.

×
Create
cancel
Showing results for 
Search instead for 
Did you mean: 
Sign up Log in

user favourite space in confluence

SherryX
Rising Star
Rising Star
Rising Stars are recognized for providing high-quality answers to other users. Rising Stars receive a certificate of achievement and are on the path to becoming Community Leaders.
November 15, 2013

I tried to migrate confluence database from Postgres to Oracle, use .XML export/import, but after imported, my favourite spaces became a lot more than before, just wonder how this happened and where is the favourate space flag in the database (I'd like to check in the database)?

thanks

1 answer

1 accepted

Comments for this post are closed

Community moderators have prevented the ability to post new answers.

Post a new question

0 votes
Answer accepted
Jeff Thomas
Atlassian Team
Atlassian Team members are employees working across the company in a wide variety of roles.
November 16, 2013

Hi Sherry,

I dug around in the database and it looks like favourites are stored as labels in Confluence. The query below should return a list of favourites for the username provided. You may need to make some modifications depending on your setup.

select spaces.spacename, spaces.spaceid, user_mapping.username, content_label.labelid, user_mapping.user_key
from USER_MAPPING, LABEL, content_label, content, spaces
where USERNAME = 'admin'
and LABEL.NAME = 'favourite'
and content.contenttype = 'SPACEDESCRIPTION'
and LABEL.OWNER = user_mapping.USER_KEY
and content_label.labelid = label.labelid
and content.contentid = content_label.contentid
and spaces.spaceid = content.spaceid;

SherryX
Rising Star
Rising Star
Rising Stars are recognized for providing high-quality answers to other users. Rising Stars receive a certificate of achievement and are on the path to becoming Community Leaders.
November 17, 2013

Thanks a lot for your help, Jeff.

TAGS
AUG Leaders

Atlassian Community Events