Build Agentic workflows, RAG pipelines, with rich AI model and tool support on one collaborative workspace. Deploy on cloud, VPC, or self-hosted, so teams move from prototype to production without rebuilding the stack.
Python agentagentic-aiagentic-frameworkagentic-workflowaiautomationclaudedeepseekgenaigptllmlow-codemcpnextjsno-codeopenaipythonskillsworkflow
fix: in alembic's offline mode (db migrate with --sql option), skip data operations (#3533)
saga.rey1fb7df12d76f
diff --git a/api/migrations/versions/de95f5c77138_migration_serpapi_api_key.py b/api/migrations/versions/de95f5c77138_migration_serpapi_api_key.pyindex f1236df3166..23657668371 100644--- a/api/migrations/versions/de95f5c77138_migration_serpapi_api_key.py+++ b/api/migrations/versions/de95f5c77138_migration_serpapi_api_key.py@@ -8,7 +8,7 @@ Create Date: 2024-01-21 12:09:04.651394from json import dumps, loadsimport sqlalchemy as sa-from alembic import op+from alembic import context, op# revision identifiers, used by Alembic.revision = 'de95f5c77138'@@ -40,8 +40,13 @@ def upgrade():{"serpapi_api_key": "$KEY"}- created_at <- tool_providers.created_at- updated_at <- tool_providers.updated_at-"""++ # in alembic's offline mode (with --sql option), skip data operations and output comments describing the migration to raw sql+ if context.is_offline_mode():+ print(f" /*{upgrade.__doc__}*/\n")+ return+# select all tool_providerstool_providers = op.get_bind().execute(sa.text(