feat(dbgpts): fix dbgpts update blocking service problem

This commit is contained in:
yhjun1026
2024-08-28 16:56:52 +08:00
parent 2298fb266b
commit 4c7a480677
5 changed files with 9 additions and 9 deletions

View File

@@ -9,7 +9,7 @@ SERVE_APP_NAME_HUMP = "dbgpt_serve_DbgptsHub"
SERVE_CONFIG_KEY_PREFIX = "dbgpt.serve.dbgpts_hub."
SERVE_SERVICE_COMPONENT_NAME = f"{SERVE_APP_NAME}_service"
# Database table name
SERVER_APP_TABLE_NAME = "dbgpts_hub"
SERVER_APP_TABLE_NAME = SERVE_APP_NAME
@dataclass

View File

@@ -9,7 +9,7 @@ SERVE_APP_NAME_HUMP = "dbgpt_serve_DbgptsMy"
SERVE_CONFIG_KEY_PREFIX = "dbgpt.serve.dbgpts_my."
SERVE_SERVICE_COMPONENT_NAME = f"{SERVE_APP_NAME}_service"
# Database table name
SERVER_APP_TABLE_NAME = "dbgpts_my"
SERVER_APP_TABLE_NAME = SERVE_APP_NAME
@dataclass

View File

@@ -34,7 +34,7 @@ class ServeEntity(Model):
onupdate=datetime.utcnow,
comment="Record update time",
)
UniqueConstraint("user_code", "name", name="uk_name")
UniqueConstraint("user_name", "name", name="uk_name")
class ServeDao(BaseDao[ServeEntity, ServeRequest, ServerResponse]):