From 7d76061029ab199fc3c1d0b5cc4628c0a5669847 Mon Sep 17 00:00:00 2001 From: shaohuzhang1 Date: Fri, 15 Mar 2024 17:28:59 +0800 Subject: [PATCH] =?UTF-8?q?fix:=20=E7=AC=AC=E4=B8=80=E6=AC=A1=E9=83=A8?= =?UTF-8?q?=E7=BD=B2=E6=8A=A5=E9=94=99?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- ...ve_problem_document_remove_problem_paragraph_and_more.py | 6 ------ 1 file changed, 6 deletions(-) diff --git a/apps/dataset/migrations/0005_remove_problem_document_remove_problem_paragraph_and_more.py b/apps/dataset/migrations/0005_remove_problem_document_remove_problem_paragraph_and_more.py index bd849196..472e0a4a 100644 --- a/apps/dataset/migrations/0005_remove_problem_document_remove_problem_paragraph_and_more.py +++ b/apps/dataset/migrations/0005_remove_problem_document_remove_problem_paragraph_and_more.py @@ -7,11 +7,6 @@ import uuid from embedding.models import SourceType -def delete_problem_embedding(apps, schema_editor): - Embedding = apps.get_model('embedding', 'Embedding') - Embedding.objects.filter(source_type=SourceType.PROBLEM).delete() - - class Migration(migrations.Migration): dependencies = [ ('dataset', '0004_remove_paragraph_hit_num_remove_paragraph_star_num_and_more'), @@ -55,5 +50,4 @@ class Migration(migrations.Migration): 'db_table': 'problem_paragraph_mapping', }, ), - migrations.RunPython(delete_problem_embedding) ]