Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

[15.0][mail]Duplicated entry in update mail_group_moderation_rel #4550

Open
dansanti opened this issue Sep 12, 2024 · 1 comment
Open

[15.0][mail]Duplicated entry in update mail_group_moderation_rel #4550

dansanti opened this issue Sep 12, 2024 · 1 comment
Labels

Comments

@dansanti
Copy link

If 2 mail channels haves the same moderator, and when is migrated to mail_group, the group id could by the same of channel, then when update is performed , could cause unique constraint error

Module

mail

Describe the bug

current 14.0 table mail_channel_moderator_rel:
mail_channel_id, res_users_id
7, 2
1, 2

when migration is performed , may create mail_channel 7 with mail_group id 1, then the table will be renamed to mail_group_moderator_rel and mail_channel_id will be renamed to mail_group_id, so, in the SQL update mail_group_id 7 will be updated according old channel_id 1 . This cause unique error, because already exists that tuple 1, 2 ( not update yet)

here the update line:

@dansanti dansanti added the bug label Sep 12, 2024
@pedrobaeza
Copy link
Member

Please propose a patch to fix this.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Projects
None yet
Development

No branches or pull requests

2 participants