From b4472369c373750cbe053d2a46c169b299983d6d Mon Sep 17 00:00:00 2001 From: ImMin5 Date: Mon, 22 Apr 2024 15:34:29 +0900 Subject: [PATCH] fix: fix max length of project name Signed-off-by: ImMin5 --- src/spaceone/identity/model/project/database.py | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/src/spaceone/identity/model/project/database.py b/src/spaceone/identity/model/project/database.py index 4e955e03..aaa8e6e6 100644 --- a/src/spaceone/identity/model/project/database.py +++ b/src/spaceone/identity/model/project/database.py @@ -3,8 +3,8 @@ class Project(MongoModel): - project_id = StringField(max_length=255, generate_id="project", unique=True) - name = StringField(max_length=40) + project_id = StringField(max_length=40, generate_id="project", unique=True) + name = StringField(max_length=255) project_type = StringField( max_length=20, default="PRIVATE", choices=("PRIVATE", "PUBLIC") )