Import labels
simonv3 opened this issue · comments
Is there anything in place to actually track user group membership of itself? For example, artists being part of labels? As part of this, it kind of looks like a lot of the migrations into the DB that are labeled as "Label" are actually artists.
Edit: made the decision to do the following:
- Create a
user_group_members
table. - on import from
user-api
db, import alluser_groups
as artists. - fetch all labels from
rsntr_usermeta
meta_key = 'mylabel'
. This gives valuesuser_id
(member) ofmeta_value
(label). - Find the label by
user_group.legacy_id
. Change that label to be of type label (3
). - Find the artist by
user_group.legacy_id
. Insert them into theuser_group_members
table.