mirror of
https://github.com/csunny/DB-GPT.git
synced 2025-09-13 05:01:25 +00:00
feat(dbgpts): fix dbgpts update blocking service problem
This commit is contained in:
@@ -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
|
||||
|
@@ -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
|
||||
|
@@ -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]):
|
||||
|
Reference in New Issue
Block a user