Skip to content

Commit aa8b48d

Browse files
authored
Merge pull request #9 from ImMin5/master
Modify unique condition for public config
2 parents 68f5074 + e52ffb6 commit aa8b48d

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

src/spaceone/config/model/public_config/database.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -4,7 +4,7 @@
44

55

66
class PublicConfig(MongoModel):
7-
name = StringField(max_length=255, unique_with=["domain_id"])
7+
name = StringField(max_length=255, unique_with=["domain_id", "workspace_id", "project_id"])
88
data = DictField()
99
tags = DictField()
1010
resource_group = StringField(max_length=40, choices=("DOMAIN", "WORKSPACE", "PROJECT"))

0 commit comments

Comments
 (0)