Skip to content

Commit

Permalink
feat: modify unique condition for public config
Browse files Browse the repository at this point in the history
  • Loading branch information
ImMin5 committed Jul 9, 2024
1 parent ed5debd commit e52ffb6
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/spaceone/config/model/public_config/database.py
Original file line number Diff line number Diff line change
Expand Up @@ -4,7 +4,7 @@


class PublicConfig(MongoModel):
name = StringField(max_length=255, unique_with=["domain_id"])
name = StringField(max_length=255, unique_with=["domain_id", "workspace_id", "project_id"])
data = DictField()
tags = DictField()
resource_group = StringField(max_length=40, choices=("DOMAIN", "WORKSPACE", "PROJECT"))
Expand Down

0 comments on commit e52ffb6

Please sign in to comment.