Skip to content

LLM-Driven Extraction of Unstructured Data — Built for API Deployments & ETL Pipeline Workflows

Hotfix v0.20.2 (#96)

Rahul Johny0f395516ba5a
diff --git a/backend/prompt_studio/prompt_profile_manager/migrations/0005_removed_converter_and_added_x2text_foreign_key.py b/backend/prompt_studio/prompt_profile_manager/migrations/0005_removed_converter_and_added_x2text_foreign_key.py
index 150d97371..d7be28309 100644
--- a/backend/prompt_studio/prompt_profile_manager/migrations/0005_removed_converter_and_added_x2text_foreign_key.py
+++ b/backend/prompt_studio/prompt_profile_manager/migrations/0005_removed_converter_and_added_x2text_foreign_key.py
@@ -57,9 +57,9 @@ class Migration(migrations.Migration):
model_name="profilemanager",
name="pdf_to_text_converters",
),
- migrations.RunPython(
- disable_triggers, reverse_code=migrations.RunPython.noop
- ),
+ # migrations.RunPython(
+ # disable_triggers, reverse_code=migrations.RunPython.noop
+ # ),
migrations.AddField(
model_name="profilemanager",
name="x2text",
@@ -71,5 +71,7 @@ class Migration(migrations.Migration):
to="adapter_processor.adapterinstance",
),
),
- migrations.RunPython(fill_with_default_x2text, reversal_x2text),
+ # This function is not required for fresh instances as the profile manager table itself will be empty.
+ # The existing environments have already completed this migration. Hence it won't be necessary.
+ # migrations.RunPython(fill_with_default_x2text, reversal_x2text),
]
diff --git a/backend/prompt_studio/prompt_profile_manager/migrations/0006_alter_profilemanager_x2text.py b/backend/prompt_studio/prompt_profile_manager/migrations/0006_alter_profilemanager_x2text.py
index cffa18dc5..b2088ef12 100644
--- a/backend/prompt_studio/prompt_profile_manager/migrations/0006_alter_profilemanager_x2text.py
+++ b/backend/prompt_studio/prompt_profile_manager/migrations/0006_alter_profilemanager_x2text.py
@@ -31,7 +31,9 @@ class Migration(migrations.Migration):
to="adapter_processor.adapterinstance",
),
),
- migrations.RunPython(
- enable_triggers,
- ),
+ # Without superuser role this statement cannot be executed
+ # and this is als0 not recommended.
+ # migrations.RunPython(
+ # enable_triggers,
+ # ),
]