mirror of
https://github.com/GNS3/gns3-server.git
synced 2026-11-06 15:21:13 +02:00
feat(db): replace deferred unique constraints with partial unique indexes for LLM model configs
Replace deferred UniqueConstraints with partial unique indexes for user and group default configurations in the LLM model configs table. This change improves performance and ensures at most one default config per user/group while maintaining data integrity. The migration script has been updated accordingly to create and drop the new indexes.
This commit is contained in:
1 parent
d42fff49a5
commit
fc7275878e
3 files changed
+23
-22
No files matched your search
@@ -35,7 +35,6 @@ from .controller.llm_model_configs import (
|
||||
LLMModelConfigCreate,
|
||||
LLMModelConfigUpdate,
|
||||
LLMModelConfigResponse,
|
||||
LLMModelConfigListResponse,
|
||||
LLMModelConfigWithSource,
|
||||
LLMModelConfigInheritedResponse
|
||||
)
|
||||
|
||||
Reference in new issue
Block a user