feat: remove unique constraint on knowledge workflow version

This commit is contained in:
CaptainB 2025-12-01 15:52:29 +08:00
parent 117212a580
commit ad869bc9c6
2 changed files with 0 additions and 2 deletions

View File

@ -53,7 +53,6 @@ class Migration(migrations.Migration):
],
options={
'db_table': 'knowledge_workflow_version',
'unique_together': {('knowledge',)},
},
),
]

View File

@ -167,7 +167,6 @@ class KnowledgeWorkflowVersion(AppModelMixin):
class Meta:
db_table = "knowledge_workflow_version"
unique_together = [['knowledge']] # 同一知识库的版本号唯一
def get_default_status():