From dced12251a153311ece3f8093254622bc0f519b9 Mon Sep 17 00:00:00 2001 From: buua436 Date: Thu, 6 Aug 2026 13:24:09 +0800 Subject: [PATCH] fix: allow recreating deleted template groups (#17915) --- api/db/db_models.py | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) diff --git a/api/db/db_models.py b/api/db/db_models.py index 1eb2a7a7af..ce9406cc3f 100644 --- a/api/db/db_models.py +++ b/api/db/db_models.py @@ -1183,7 +1183,6 @@ class CompilationTemplateGroup(DataBaseModel): class Meta: db_table = "compilation_template_group" - indexes = ((("tenant_id", "name", "status"), True),) class Search(DataBaseModel): @@ -1825,6 +1824,9 @@ def migrate_db(): ("compilation_template", "compilationtemplate_tenant_id_name_is_builtin_status"), ("compilation_template", "compilation_template_tenant_id_name_is_builtin_status"), ("compilation_template", "idx_compilation_template_tenant_id_name_is_builtin_status"), + ("compilation_template_group", "compilationtemplategroup_tenant_id_name_status"), + ("compilation_template_group", "compilation_template_group_tenant_id_name_status"), + ("compilation_template_group", "idx_compilation_template_group_tenant_id_name_status"), ] for table_name, index_name in legacy_indexes: try: