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

fix: unique constraints #713

Merged
merged 2 commits into from
Apr 30, 2024
Merged

fix: unique constraints #713

merged 2 commits into from
Apr 30, 2024

Conversation

adityathebe
Copy link
Member

@adityathebe adityathebe commented Apr 29, 2024

related: flanksource/mission-control#980

setting the unique constraints only on active records so we can have new records with the same name as the old deleted ones.

@moshloop
Copy link
Member

@adityathebe can we add for people and agents ?

@adityathebe adityathebe force-pushed the fix/unique-constraints branch 2 times, most recently from d2c8da5 to d4d7cce Compare April 30, 2024 13:21
@adityathebe adityathebe force-pushed the fix/unique-constraints branch from d4d7cce to 1a1f66f Compare April 30, 2024 13:22
@adityathebe
Copy link
Member Author

@moshloop people table didn't have a deleted_at column. I've added it here.

@moshloop moshloop merged commit 68fdf1d into main Apr 30, 2024
7 checks passed
@moshloop moshloop deleted the fix/unique-constraints branch April 30, 2024 17:13
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants