Skip to content

Add uniqueness constraint on workspaces name for the pg backend#29157

Merged
jbardin merged 3 commits intohashicorp:mainfrom
remilapeyre:unique-constraint
Jul 20, 2021
Merged

Add uniqueness constraint on workspaces name for the pg backend#29157
jbardin merged 3 commits intohashicorp:mainfrom
remilapeyre:unique-constraint

Conversation

@remilapeyre
Copy link
Copy Markdown

While it should not be possible to create two workspaces with the same name as the index should be created by the database administrator when skip_index_creation is used, this additional constraint will make it impossible to do so even if the index is missing.

I also reworded the documentation for the skip_... options which was inaccurate.

Discussion at #29034

@jbardin jbardin self-assigned this Jul 20, 2021
@jbardin
Copy link
Copy Markdown
Member

jbardin commented Jul 20, 2021

Thanks @remilapeyre!

@github-actions
Copy link
Copy Markdown
Contributor

I'm going to lock this pull request because it has been closed for 30 days ⏳. This helps our maintainers find and focus on the active contributions.
If you have found a problem that seems related to this change, please open a new issue and complete the issue template so we can capture all the details necessary to investigate further.

@github-actions github-actions bot locked as resolved and limited conversation to collaborators Aug 20, 2021
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants