Skip to content

models/BugTrackerAccount: remove user_id unique constraint

Bret requested to merge bretdavi/cibuglog:bt_account_fix into master

With the unique constraint in place for the id field it requires the id to be unique among all trackers. This does not work for the multiple BugTracker instances that are created for different projects on the same BugTracker.

It is also possible that some user id to be randomly the same in a completely unrelated tracker.

The unique_together constraint already exists between a specific tracker instance and user_id, so just removing the unique parameter from the user_id field resolves the issue.

Merge request reports