diff --git a/api/migrations/env.py b/api/migrations/env.py index f7ce8d9752..b38d4cdd9a 100644 --- a/api/migrations/env.py +++ b/api/migrations/env.py @@ -106,4 +106,4 @@ def run_migrations_online(): if context.is_offline_mode(): run_migrations_offline() else: - run_migrations_online() \ No newline at end of file + run_migrations_online() diff --git a/api/migrations/versions/00bacef91f18_rename_api_provider_description.py b/api/migrations/versions/00bacef91f18_rename_api_provider_description.py index 90e15ec054..5ae9e8769a 100644 --- a/api/migrations/versions/00bacef91f18_rename_api_provider_description.py +++ b/api/migrations/versions/00bacef91f18_rename_api_provider_description.py @@ -30,4 +30,4 @@ def downgrade(): batch_op.add_column(sa.Column('description_str', sa.TEXT(), autoincrement=False, nullable=False)) batch_op.drop_column('description') - # ### end Alembic commands ### \ No newline at end of file + # ### end Alembic commands ### diff --git a/api/migrations/versions/03f98355ba0e_add_workflow_tool_label_and_tool_.py b/api/migrations/versions/03f98355ba0e_add_workflow_tool_label_and_tool_.py index 8f95163451..8cd4ec552b 100644 --- a/api/migrations/versions/03f98355ba0e_add_workflow_tool_label_and_tool_.py +++ b/api/migrations/versions/03f98355ba0e_add_workflow_tool_label_and_tool_.py @@ -30,4 +30,4 @@ def downgrade(): batch_op.drop_column('label') with op.batch_alter_table('tool_label_bindings', schema=None) as batch_op: - batch_op.drop_constraint('unique_tool_label_bind', type_='unique') \ No newline at end of file + batch_op.drop_constraint('unique_tool_label_bind', type_='unique') diff --git a/api/migrations/versions/04c602f5dc9b_update_appmodelconfig_and_add_table_.py b/api/migrations/versions/04c602f5dc9b_update_appmodelconfig_and_add_table_.py index e5abeeaec7..153861a71a 100644 --- a/api/migrations/versions/04c602f5dc9b_update_appmodelconfig_and_add_table_.py +++ b/api/migrations/versions/04c602f5dc9b_update_appmodelconfig_and_add_table_.py @@ -36,4 +36,4 @@ def downgrade(): # ### commands auto generated by Alembic - please adjust! ## op.drop_table('tracing_app_configs') - # ### end Alembic commands ### \ No newline at end of file + # ### end Alembic commands ### diff --git a/api/migrations/versions/053da0c1d756_add_api_tool_privacy.py b/api/migrations/versions/053da0c1d756_add_api_tool_privacy.py index dd7a341fa4..a589f1f08b 100644 --- a/api/migrations/versions/053da0c1d756_add_api_tool_privacy.py +++ b/api/migrations/versions/053da0c1d756_add_api_tool_privacy.py @@ -48,4 +48,4 @@ def downgrade(): batch_op.drop_column('privacy_policy') op.drop_table('tool_conversation_variables') - # ### end Alembic commands ### \ No newline at end of file + # ### end Alembic commands ### diff --git a/api/migrations/versions/114eed84c228_remove_tool_id_from_model_invoke.py b/api/migrations/versions/114eed84c228_remove_tool_id_from_model_invoke.py index c67dbaed75..58863fe3a7 100644 --- a/api/migrations/versions/114eed84c228_remove_tool_id_from_model_invoke.py +++ b/api/migrations/versions/114eed84c228_remove_tool_id_from_model_invoke.py @@ -29,4 +29,4 @@ def downgrade(): with op.batch_alter_table('tool_model_invokes', schema=None) as batch_op: batch_op.add_column(sa.Column('tool_id', postgresql.UUID(), autoincrement=False, nullable=False)) - # ### end Alembic commands ### \ No newline at end of file + # ### end Alembic commands ### diff --git a/api/migrations/versions/161cadc1af8d_add_dataset_permission_tenant_id.py b/api/migrations/versions/161cadc1af8d_add_dataset_permission_tenant_id.py index 4e2ff74c28..8907f78117 100644 --- a/api/migrations/versions/161cadc1af8d_add_dataset_permission_tenant_id.py +++ b/api/migrations/versions/161cadc1af8d_add_dataset_permission_tenant_id.py @@ -31,4 +31,4 @@ def downgrade(): with op.batch_alter_table('dataset_permissions', schema=None) as batch_op: batch_op.drop_column('tenant_id') - # ### end Alembic commands ### \ No newline at end of file + # ### end Alembic commands ### diff --git a/api/migrations/versions/16830a790f0f_.py b/api/migrations/versions/16830a790f0f_.py index 54fd53896a..38d6e4940a 100644 --- a/api/migrations/versions/16830a790f0f_.py +++ b/api/migrations/versions/16830a790f0f_.py @@ -28,4 +28,4 @@ def downgrade(): with op.batch_alter_table('tenant_account_joins', schema=None) as batch_op: batch_op.drop_column('current') - # ### end Alembic commands ### \ No newline at end of file + # ### end Alembic commands ### diff --git a/api/migrations/versions/16fa53d9faec_add_provider_model_support.py b/api/migrations/versions/16fa53d9faec_add_provider_model_support.py index bede7e1031..6791cf4578 100644 --- a/api/migrations/versions/16fa53d9faec_add_provider_model_support.py +++ b/api/migrations/versions/16fa53d9faec_add_provider_model_support.py @@ -76,4 +76,4 @@ def downgrade(): batch_op.drop_index('provider_model_tenant_id_provider_idx') op.drop_table('provider_models') - # ### end Alembic commands ### \ No newline at end of file + # ### end Alembic commands ### diff --git a/api/migrations/versions/17b5ab037c40_add_keyworg_table_storage_type.py b/api/migrations/versions/17b5ab037c40_add_keyworg_table_storage_type.py index 1108621d50..7707148489 100644 --- a/api/migrations/versions/17b5ab037c40_add_keyworg_table_storage_type.py +++ b/api/migrations/versions/17b5ab037c40_add_keyworg_table_storage_type.py @@ -30,4 +30,4 @@ def downgrade(): with op.batch_alter_table('dataset_keyword_tables', schema=None) as batch_op: batch_op.drop_column('data_source_type') - # ### end Alembic commands ### \ No newline at end of file + # ### end Alembic commands ### diff --git a/api/migrations/versions/187385f442fc_modify_provider_model_name_length.py b/api/migrations/versions/187385f442fc_modify_provider_model_name_length.py index 4c81b01a43..13a823f7ec 100644 --- a/api/migrations/versions/187385f442fc_modify_provider_model_name_length.py +++ b/api/migrations/versions/187385f442fc_modify_provider_model_name_length.py @@ -34,4 +34,4 @@ def downgrade(): type_=sa.VARCHAR(length=40), existing_nullable=False) - # ### end Alembic commands ### \ No newline at end of file + # ### end Alembic commands ### diff --git a/api/migrations/versions/2024_08_09_0801-1787fbae959a_update_tools_original_url_length.py b/api/migrations/versions/2024_08_09_0801-1787fbae959a_update_tools_original_url_length.py index ce30380e81..db966252f1 100644 --- a/api/migrations/versions/2024_08_09_0801-1787fbae959a_update_tools_original_url_length.py +++ b/api/migrations/versions/2024_08_09_0801-1787fbae959a_update_tools_original_url_length.py @@ -36,4 +36,4 @@ def downgrade(): type_=sa.VARCHAR(length=255), existing_nullable=True) - # ### end Alembic commands ### \ No newline at end of file + # ### end Alembic commands ### diff --git a/api/migrations/versions/2024_08_13_0633-63a83fcf12ba_support_conversation_variables.py b/api/migrations/versions/2024_08_13_0633-63a83fcf12ba_support_conversation_variables.py index 38b8ae9510..16e1efd4ef 100644 --- a/api/migrations/versions/2024_08_13_0633-63a83fcf12ba_support_conversation_variables.py +++ b/api/migrations/versions/2024_08_13_0633-63a83fcf12ba_support_conversation_variables.py @@ -48,4 +48,4 @@ def downgrade(): batch_op.drop_index(batch_op.f('workflow__conversation_variables_app_id_idx')) op.drop_table('workflow__conversation_variables') - # ### end Alembic commands ### \ No newline at end of file + # ### end Alembic commands ### diff --git a/api/migrations/versions/2024_08_14_1354-8782057ff0dc_add_conversations_dialogue_count.py b/api/migrations/versions/2024_08_14_1354-8782057ff0dc_add_conversations_dialogue_count.py index d56eb75105..eba78e2e77 100644 --- a/api/migrations/versions/2024_08_14_1354-8782057ff0dc_add_conversations_dialogue_count.py +++ b/api/migrations/versions/2024_08_14_1354-8782057ff0dc_add_conversations_dialogue_count.py @@ -30,4 +30,4 @@ def downgrade(): with op.batch_alter_table('conversations', schema=None) as batch_op: batch_op.drop_column('dialogue_count') - # ### end Alembic commands ### \ No newline at end of file + # ### end Alembic commands ### diff --git a/api/migrations/versions/2024_08_15_0956-0251a1c768cc_add_tidb_auth_binding.py b/api/migrations/versions/2024_08_15_0956-0251a1c768cc_add_tidb_auth_binding.py index 0f8d9b5653..ca2e410442 100644 --- a/api/migrations/versions/2024_08_15_0956-0251a1c768cc_add_tidb_auth_binding.py +++ b/api/migrations/versions/2024_08_15_0956-0251a1c768cc_add_tidb_auth_binding.py @@ -48,4 +48,4 @@ def downgrade(): batch_op.drop_index('tidb_auth_bindings_active_idx') batch_op.drop_index('tidb_auth_bindings_status_idx') op.drop_table('tidb_auth_bindings') - # ### end Alembic commands ### \ No newline at end of file + # ### end Alembic commands ### diff --git a/api/migrations/versions/2024_08_15_1001-a6be81136580_app_and_site_icon_type.py b/api/migrations/versions/2024_08_15_1001-a6be81136580_app_and_site_icon_type.py index 4e5e13e548..d814666eef 100644 --- a/api/migrations/versions/2024_08_15_1001-a6be81136580_app_and_site_icon_type.py +++ b/api/migrations/versions/2024_08_15_1001-a6be81136580_app_and_site_icon_type.py @@ -36,4 +36,4 @@ def downgrade(): with op.batch_alter_table('apps', schema=None) as batch_op: batch_op.drop_column('icon_type') - # ### end Alembic commands ### \ No newline at end of file + # ### end Alembic commands ### diff --git a/api/migrations/versions/2024_08_20_0455-2dbe42621d96_rename_workflow__conversation_variables_.py b/api/migrations/versions/2024_08_20_0455-2dbe42621d96_rename_workflow__conversation_variables_.py index 5ce715ac19..3dc7fed818 100644 --- a/api/migrations/versions/2024_08_20_0455-2dbe42621d96_rename_workflow__conversation_variables_.py +++ b/api/migrations/versions/2024_08_20_0455-2dbe42621d96_rename_workflow__conversation_variables_.py @@ -25,4 +25,4 @@ def upgrade(): def downgrade(): # ### commands auto generated by Alembic - please adjust! ### op.rename_table('workflow_conversation_variables', 'workflow__conversation_variables') - # ### end Alembic commands ### \ No newline at end of file + # ### end Alembic commands ### diff --git a/api/migrations/versions/2024_08_25_0441-d0187d6a88dd_add_created_by_and_updated_by_to_app_.py b/api/migrations/versions/2024_08_25_0441-d0187d6a88dd_add_created_by_and_updated_by_to_app_.py index 31e8e45090..e0066a302c 100644 --- a/api/migrations/versions/2024_08_25_0441-d0187d6a88dd_add_created_by_and_updated_by_to_app_.py +++ b/api/migrations/versions/2024_08_25_0441-d0187d6a88dd_add_created_by_and_updated_by_to_app_.py @@ -49,4 +49,4 @@ def downgrade(): batch_op.drop_column("updated_by") batch_op.drop_column("created_by") - # ### end Alembic commands ### \ No newline at end of file + # ### end Alembic commands ### diff --git a/api/migrations/versions/2024_09_01_1255-030f4915f36a_add_use_icon_as_answer_icon_fields_for_.py b/api/migrations/versions/2024_09_01_1255-030f4915f36a_add_use_icon_as_answer_icon_fields_for_.py index 2d23a15b8e..4406d51ed0 100644 --- a/api/migrations/versions/2024_09_01_1255-030f4915f36a_add_use_icon_as_answer_icon_fields_for_.py +++ b/api/migrations/versions/2024_09_01_1255-030f4915f36a_add_use_icon_as_answer_icon_fields_for_.py @@ -42,4 +42,4 @@ def downgrade(): with op.batch_alter_table("apps", schema=None) as batch_op: batch_op.drop_column("use_icon_as_answer_icon") - # ### end Alembic commands ### \ No newline at end of file + # ### end Alembic commands ### diff --git a/api/migrations/versions/2024_09_11_1012-d57ba9ebb251_add_parent_message_id_to_messages.py b/api/migrations/versions/2024_09_11_1012-d57ba9ebb251_add_parent_message_id_to_messages.py index 1451502a47..fd957eeafb 100644 --- a/api/migrations/versions/2024_09_11_1012-d57ba9ebb251_add_parent_message_id_to_messages.py +++ b/api/migrations/versions/2024_09_11_1012-d57ba9ebb251_add_parent_message_id_to_messages.py @@ -33,4 +33,4 @@ def downgrade(): with op.batch_alter_table('messages', schema=None) as batch_op: batch_op.drop_column('parent_message_id') - # ### end Alembic commands ### \ No newline at end of file + # ### end Alembic commands ### diff --git a/api/migrations/versions/2024_09_24_0922-6af6a521a53e_update_retrieval_resource.py b/api/migrations/versions/2024_09_24_0922-6af6a521a53e_update_retrieval_resource.py index 9e700a0d49..5337b340db 100644 --- a/api/migrations/versions/2024_09_24_0922-6af6a521a53e_update_retrieval_resource.py +++ b/api/migrations/versions/2024_09_24_0922-6af6a521a53e_update_retrieval_resource.py @@ -45,4 +45,4 @@ def downgrade(): existing_type=sa.UUID(), nullable=False) - # ### end Alembic commands ### \ No newline at end of file + # ### end Alembic commands ### diff --git a/api/migrations/versions/2024_09_25_0434-33f5fac87f29_external_knowledge_api.py b/api/migrations/versions/2024_09_25_0434-33f5fac87f29_external_knowledge_api.py index 37c369f53e..3cb76e72c1 100644 --- a/api/migrations/versions/2024_09_25_0434-33f5fac87f29_external_knowledge_api.py +++ b/api/migrations/versions/2024_09_25_0434-33f5fac87f29_external_knowledge_api.py @@ -70,4 +70,4 @@ def downgrade(): batch_op.drop_index('external_knowledge_apis_name_idx') op.drop_table('external_knowledge_apis') - # ### end Alembic commands ### \ No newline at end of file + # ### end Alembic commands ### diff --git a/api/migrations/versions/2024_09_29_0835-ddcc8bbef391_increase_max_length_of_builtin_tool_provider.py b/api/migrations/versions/2024_09_29_0835-ddcc8bbef391_increase_max_length_of_builtin_tool_provider.py index b989d2747d..71006679e1 100644 --- a/api/migrations/versions/2024_09_29_0835-ddcc8bbef391_increase_max_length_of_builtin_tool_provider.py +++ b/api/migrations/versions/2024_09_29_0835-ddcc8bbef391_increase_max_length_of_builtin_tool_provider.py @@ -36,4 +36,4 @@ def downgrade(): type_=sa.VARCHAR(length=40), existing_nullable=False) - # ### end Alembic commands ### \ No newline at end of file + # ### end Alembic commands ### diff --git a/api/migrations/versions/2024_10_09_1329-d8e744d88ed6_fix_wrong_service_api_history.py b/api/migrations/versions/2024_10_09_1329-d8e744d88ed6_fix_wrong_service_api_history.py index a8158956bb..38a5cdf8e5 100644 --- a/api/migrations/versions/2024_10_09_1329-d8e744d88ed6_fix_wrong_service_api_history.py +++ b/api/migrations/versions/2024_10_09_1329-d8e744d88ed6_fix_wrong_service_api_history.py @@ -45,4 +45,4 @@ WHERE AND parent_message_id = '{UUID_NIL}' AND created_at >= '{v0_9_0_release_date}';""" op.execute(sql) - # ### end Alembic commands ### \ No newline at end of file + # ### end Alembic commands ### diff --git a/api/migrations/versions/2024_10_10_0516-bbadea11becb_add_name_and_size_to_tool_files.py b/api/migrations/versions/2024_10_10_0516-bbadea11becb_add_name_and_size_to_tool_files.py index 969cb4d06d..00f2b15802 100644 --- a/api/migrations/versions/2024_10_10_0516-bbadea11becb_add_name_and_size_to_tool_files.py +++ b/api/migrations/versions/2024_10_10_0516-bbadea11becb_add_name_and_size_to_tool_files.py @@ -62,4 +62,4 @@ def downgrade(): with op.batch_alter_table("tool_files", schema=None) as batch_op: batch_op.drop_column("size") batch_op.drop_column("name") - # ### end Alembic commands ### \ No newline at end of file + # ### end Alembic commands ### diff --git a/api/migrations/versions/2024_10_22_0959-43fa78bc3b7d_add_white_list.py b/api/migrations/versions/2024_10_22_0959-43fa78bc3b7d_add_white_list.py index 71c90534fd..9daf148bc4 100644 --- a/api/migrations/versions/2024_10_22_0959-43fa78bc3b7d_add_white_list.py +++ b/api/migrations/versions/2024_10_22_0959-43fa78bc3b7d_add_white_list.py @@ -39,4 +39,4 @@ def downgrade(): batch_op.drop_index('whitelists_tenant_idx') op.drop_table('whitelists') - # ### end Alembic commands ### \ No newline at end of file + # ### end Alembic commands ### diff --git a/api/migrations/versions/2024_10_28_0720-08ec4f75af5e_add_tenant_plugin_permisisons.py b/api/migrations/versions/2024_10_28_0720-08ec4f75af5e_add_tenant_plugin_permisisons.py index 1e514090c0..51a0b1b211 100644 --- a/api/migrations/versions/2024_10_28_0720-08ec4f75af5e_add_tenant_plugin_permisisons.py +++ b/api/migrations/versions/2024_10_28_0720-08ec4f75af5e_add_tenant_plugin_permisisons.py @@ -34,4 +34,4 @@ def upgrade(): def downgrade(): # ### commands auto generated by Alembic - please adjust! ### op.drop_table('account_plugin_permissions') - # ### end Alembic commands ### \ No newline at end of file + # ### end Alembic commands ### diff --git a/api/migrations/versions/2024_11_01_0434-d3f6769a94a3_add_upload_files_source_url.py b/api/migrations/versions/2024_11_01_0434-d3f6769a94a3_add_upload_files_source_url.py index 5221c05ec0..a749c8bddf 100644 --- a/api/migrations/versions/2024_11_01_0434-d3f6769a94a3_add_upload_files_source_url.py +++ b/api/migrations/versions/2024_11_01_0434-d3f6769a94a3_add_upload_files_source_url.py @@ -28,4 +28,4 @@ def downgrade(): # ### commands auto generated by Alembic - please adjust! ### with op.batch_alter_table('upload_files', schema=None) as batch_op: batch_op.drop_column('source_url') - # ### end Alembic commands ### \ No newline at end of file + # ### end Alembic commands ### diff --git a/api/migrations/versions/2024_11_01_0449-93ad8c19c40b_rename_conversation_variables_index_name.py b/api/migrations/versions/2024_11_01_0449-93ad8c19c40b_rename_conversation_variables_index_name.py index cbd2fb67bf..81a7978f73 100644 --- a/api/migrations/versions/2024_11_01_0449-93ad8c19c40b_rename_conversation_variables_index_name.py +++ b/api/migrations/versions/2024_11_01_0449-93ad8c19c40b_rename_conversation_variables_index_name.py @@ -49,4 +49,4 @@ def downgrade(): batch_op.create_index('workflow__conversation_variables_created_at_idx', ['created_at'], unique=False) batch_op.create_index('workflow__conversation_variables_app_id_idx', ['app_id'], unique=False) - # ### end Alembic commands ### \ No newline at end of file + # ### end Alembic commands ### diff --git a/api/migrations/versions/2024_11_01_0540-f4d7ce70a7ca_update_upload_files_source_url.py b/api/migrations/versions/2024_11_01_0540-f4d7ce70a7ca_update_upload_files_source_url.py index 93d099d5e0..222379a490 100644 --- a/api/migrations/versions/2024_11_01_0540-f4d7ce70a7ca_update_upload_files_source_url.py +++ b/api/migrations/versions/2024_11_01_0540-f4d7ce70a7ca_update_upload_files_source_url.py @@ -38,4 +38,4 @@ def downgrade(): existing_nullable=False, existing_server_default=sa.text("''::character varying")) - # ### end Alembic commands ### \ No newline at end of file + # ### end Alembic commands ### diff --git a/api/migrations/versions/2024_11_01_0622-d07474999927_update_type_of_custom_disclaimer_to_text.py b/api/migrations/versions/2024_11_01_0622-d07474999927_update_type_of_custom_disclaimer_to_text.py index c33bd4796c..9a4ccf352d 100644 --- a/api/migrations/versions/2024_11_01_0622-d07474999927_update_type_of_custom_disclaimer_to_text.py +++ b/api/migrations/versions/2024_11_01_0622-d07474999927_update_type_of_custom_disclaimer_to_text.py @@ -64,4 +64,4 @@ def downgrade(): type_=sa.VARCHAR(length=255), nullable=True) - # ### end Alembic commands ### \ No newline at end of file + # ### end Alembic commands ### diff --git a/api/migrations/versions/2024_11_01_0623-09a8d1878d9b_update_workflows_graph_features_and_.py b/api/migrations/versions/2024_11_01_0623-09a8d1878d9b_update_workflows_graph_features_and_.py index da414a4937..117a7351cd 100644 --- a/api/migrations/versions/2024_11_01_0623-09a8d1878d9b_update_workflows_graph_features_and_.py +++ b/api/migrations/versions/2024_11_01_0623-09a8d1878d9b_update_workflows_graph_features_and_.py @@ -70,4 +70,4 @@ def downgrade(): existing_type=postgresql.JSON(astext_type=sa.Text()), nullable=True) - # ### end Alembic commands ### \ No newline at end of file + # ### end Alembic commands ### diff --git a/api/migrations/versions/2024_11_12_0925-01d6889832f7_add_created_at_index_for_messages.py b/api/migrations/versions/2024_11_12_0925-01d6889832f7_add_created_at_index_for_messages.py index c8ed64569a..d94508edcf 100644 --- a/api/migrations/versions/2024_11_12_0925-01d6889832f7_add_created_at_index_for_messages.py +++ b/api/migrations/versions/2024_11_12_0925-01d6889832f7_add_created_at_index_for_messages.py @@ -28,4 +28,4 @@ def downgrade(): # ### commands auto generated by Alembic - please adjust! ### with op.batch_alter_table('messages', schema=None) as batch_op: batch_op.drop_index('message_created_at_idx') - # ### end Alembic commands ### \ No newline at end of file + # ### end Alembic commands ### diff --git a/api/migrations/versions/2024_11_22_0701-e19037032219_parent_child_index.py b/api/migrations/versions/2024_11_22_0701-e19037032219_parent_child_index.py index 0fc43447eb..9238e5a0a8 100644 --- a/api/migrations/versions/2024_11_22_0701-e19037032219_parent_child_index.py +++ b/api/migrations/versions/2024_11_22_0701-e19037032219_parent_child_index.py @@ -52,4 +52,4 @@ def downgrade(): batch_op.drop_index('child_chunk_dataset_id_idx') op.drop_table('child_chunks') - # ### end Alembic commands ### \ No newline at end of file + # ### end Alembic commands ### diff --git a/api/migrations/versions/2024_11_28_0553-cf8f4fc45278_add_exceptions_count_field_to_.py b/api/migrations/versions/2024_11_28_0553-cf8f4fc45278_add_exceptions_count_field_to_.py index 92dbe747dd..8c576339ba 100644 --- a/api/migrations/versions/2024_11_28_0553-cf8f4fc45278_add_exceptions_count_field_to_.py +++ b/api/migrations/versions/2024_11_28_0553-cf8f4fc45278_add_exceptions_count_field_to_.py @@ -30,4 +30,4 @@ def downgrade(): with op.batch_alter_table('workflow_runs', schema=None) as batch_op: batch_op.drop_column('exceptions_count') - # ### end Alembic commands ### \ No newline at end of file + # ### end Alembic commands ### diff --git a/api/migrations/versions/2024_12_19_1746-11b07f66c737_remove_unused_tool_providers.py b/api/migrations/versions/2024_12_19_1746-11b07f66c737_remove_unused_tool_providers.py index c0ff4ce5d0..881a9e3c1e 100644 --- a/api/migrations/versions/2024_12_19_1746-11b07f66c737_remove_unused_tool_providers.py +++ b/api/migrations/versions/2024_12_19_1746-11b07f66c737_remove_unused_tool_providers.py @@ -36,4 +36,4 @@ def downgrade(): sa.PrimaryKeyConstraint('id', name='tool_provider_pkey'), sa.UniqueConstraint('tenant_id', 'tool_name', name='unique_tool_provider_tool_name') ) - # ### end Alembic commands ### \ No newline at end of file + # ### end Alembic commands ### diff --git a/api/migrations/versions/2024_12_20_0628-e1944c35e15e_add_retry_index_field_to_node_execution_.py b/api/migrations/versions/2024_12_20_0628-e1944c35e15e_add_retry_index_field_to_node_execution_.py index 0facd0ecc0..ae9f2de9b1 100644 --- a/api/migrations/versions/2024_12_20_0628-e1944c35e15e_add_retry_index_field_to_node_execution_.py +++ b/api/migrations/versions/2024_12_20_0628-e1944c35e15e_add_retry_index_field_to_node_execution_.py @@ -35,4 +35,4 @@ def downgrade(): # batch_op.drop_column('retry_index') pass - # ### end Alembic commands ### \ No newline at end of file + # ### end Alembic commands ### diff --git a/api/migrations/versions/2024_12_23_1154-d7999dfa4aae_remove_workflow_node_executions_retry_.py b/api/migrations/versions/2024_12_23_1154-d7999dfa4aae_remove_workflow_node_executions_retry_.py index 1f49d35dbe..adf6421e57 100644 --- a/api/migrations/versions/2024_12_23_1154-d7999dfa4aae_remove_workflow_node_executions_retry_.py +++ b/api/migrations/versions/2024_12_23_1154-d7999dfa4aae_remove_workflow_node_executions_retry_.py @@ -41,4 +41,4 @@ def upgrade(): def downgrade(): # No downgrade needed as we don't want to restore the column - pass \ No newline at end of file + pass diff --git a/api/migrations/versions/2024_12_25_1137-923752d42eb6_add_auto_disabled_dataset_logs.py b/api/migrations/versions/2024_12_25_1137-923752d42eb6_add_auto_disabled_dataset_logs.py index 6b7ea53c03..6dadd4e4a8 100644 --- a/api/migrations/versions/2024_12_25_1137-923752d42eb6_add_auto_disabled_dataset_logs.py +++ b/api/migrations/versions/2024_12_25_1137-923752d42eb6_add_auto_disabled_dataset_logs.py @@ -44,4 +44,4 @@ def downgrade(): batch_op.drop_index('dataset_auto_disable_log_created_atx') op.drop_table('dataset_auto_disable_logs') - # ### end Alembic commands ### \ No newline at end of file + # ### end Alembic commands ### diff --git a/api/migrations/versions/2025_01_01_2000-a91b476a53de_change_workflow_runs_total_tokens_to_.py b/api/migrations/versions/2025_01_01_2000-a91b476a53de_change_workflow_runs_total_tokens_to_.py index 7ca9a49c4d..798c895863 100644 --- a/api/migrations/versions/2025_01_01_2000-a91b476a53de_change_workflow_runs_total_tokens_to_.py +++ b/api/migrations/versions/2025_01_01_2000-a91b476a53de_change_workflow_runs_total_tokens_to_.py @@ -38,4 +38,4 @@ def downgrade(): existing_nullable=False, existing_server_default=sa.text('0')) - # ### end Alembic commands ### \ No newline at end of file + # ### end Alembic commands ### diff --git a/api/migrations/versions/2025_01_14_0617-f051706725cc_add_rate_limit_logs.py b/api/migrations/versions/2025_01_14_0617-f051706725cc_add_rate_limit_logs.py index 23f2fc2f22..ef495be661 100644 --- a/api/migrations/versions/2025_01_14_0617-f051706725cc_add_rate_limit_logs.py +++ b/api/migrations/versions/2025_01_14_0617-f051706725cc_add_rate_limit_logs.py @@ -40,4 +40,4 @@ def downgrade(): batch_op.drop_index('rate_limit_log_operation_idx') op.drop_table('rate_limit_logs') - # ### end Alembic commands ### \ No newline at end of file + # ### end Alembic commands ### diff --git a/api/migrations/versions/2025_02_27_0917-d20049ed0af6_add_metadata_function.py b/api/migrations/versions/2025_02_27_0917-d20049ed0af6_add_metadata_function.py index 70f2517864..877e3a5eed 100644 --- a/api/migrations/versions/2025_02_27_0917-d20049ed0af6_add_metadata_function.py +++ b/api/migrations/versions/2025_02_27_0917-d20049ed0af6_add_metadata_function.py @@ -87,4 +87,4 @@ def downgrade(): batch_op.drop_index('dataset_metadata_binding_dataset_idx') op.drop_table('dataset_metadata_bindings') - # ### end Alembic commands ### \ No newline at end of file + # ### end Alembic commands ### diff --git a/api/migrations/versions/2025_03_03_0304-4413929e1ec2_extend_provider_name_column.py b/api/migrations/versions/2025_03_03_0304-4413929e1ec2_extend_provider_name_column.py index 2484d65677..4a62624bb8 100644 --- a/api/migrations/versions/2025_03_03_0304-4413929e1ec2_extend_provider_name_column.py +++ b/api/migrations/versions/2025_03_03_0304-4413929e1ec2_extend_provider_name_column.py @@ -36,4 +36,4 @@ def downgrade(): type_=sa.VARCHAR(length=40), existing_nullable=False) - # ### end Alembic commands ### \ No newline at end of file + # ### end Alembic commands ### diff --git a/api/migrations/versions/2025_03_03_1436-ee79d9b1c156_add_marked_name_and_marked_comment_in_.py b/api/migrations/versions/2025_03_03_1436-ee79d9b1c156_add_marked_name_and_marked_comment_in_.py index 4d67b3637e..5189de40e4 100644 --- a/api/migrations/versions/2025_03_03_1436-ee79d9b1c156_add_marked_name_and_marked_comment_in_.py +++ b/api/migrations/versions/2025_03_03_1436-ee79d9b1c156_add_marked_name_and_marked_comment_in_.py @@ -26,4 +26,4 @@ def upgrade(): def downgrade(): with op.batch_alter_table('workflows', schema=None) as batch_op: batch_op.drop_column('marked_comment') - batch_op.drop_column('marked_name') \ No newline at end of file + batch_op.drop_column('marked_name') diff --git a/api/migrations/versions/2025_03_07_0315-5511c782ee4c_extend_provider_column.py b/api/migrations/versions/2025_03_07_0315-5511c782ee4c_extend_provider_column.py index 5a370a9808..0dc15ffd78 100644 --- a/api/migrations/versions/2025_03_07_0315-5511c782ee4c_extend_provider_column.py +++ b/api/migrations/versions/2025_03_07_0315-5511c782ee4c_extend_provider_column.py @@ -61,4 +61,4 @@ def downgrade(): type_=sa.VARCHAR(length=40), existing_nullable=False) - # ### end Alembic commands ### \ No newline at end of file + # ### end Alembic commands ### diff --git a/api/migrations/versions/2025_03_29_2227-6a9f914f656c_change_documentsegment_and_childchunk_.py b/api/migrations/versions/2025_03_29_2227-6a9f914f656c_change_documentsegment_and_childchunk_.py index 78092e4489..45904f0c80 100644 --- a/api/migrations/versions/2025_03_29_2227-6a9f914f656c_change_documentsegment_and_childchunk_.py +++ b/api/migrations/versions/2025_03_29_2227-6a9f914f656c_change_documentsegment_and_childchunk_.py @@ -40,4 +40,4 @@ def downgrade(): batch_op.drop_index('child_chunks_segment_idx') batch_op.drop_index('child_chunks_node_idx') - # ### end Alembic commands ### \ No newline at end of file + # ### end Alembic commands ### diff --git a/api/migrations/versions/2025_05_14_1403-d28f2004b072_add_index_for_workflow_conversation_.py b/api/migrations/versions/2025_05_14_1403-d28f2004b072_add_index_for_workflow_conversation_.py index 0c6b4e1056..19f6c01655 100644 --- a/api/migrations/versions/2025_05_14_1403-d28f2004b072_add_index_for_workflow_conversation_.py +++ b/api/migrations/versions/2025_05_14_1403-d28f2004b072_add_index_for_workflow_conversation_.py @@ -30,4 +30,4 @@ def downgrade(): with op.batch_alter_table('workflow_conversation_variables', schema=None) as batch_op: batch_op.drop_index(batch_op.f('workflow_conversation_variables_conversation_id_idx')) - # ### end Alembic commands ### \ No newline at end of file + # ### end Alembic commands ### diff --git a/api/migrations/versions/2025_05_15_1531-2adcbe1f5dfb_add_workflowdraftvariable_model.py b/api/migrations/versions/2025_05_15_1531-2adcbe1f5dfb_add_workflowdraftvariable_model.py index 32981cec1f..5bf394b21c 100644 --- a/api/migrations/versions/2025_05_15_1531-2adcbe1f5dfb_add_workflowdraftvariable_model.py +++ b/api/migrations/versions/2025_05_15_1531-2adcbe1f5dfb_add_workflowdraftvariable_model.py @@ -48,4 +48,4 @@ def downgrade(): # Dropping `workflow_draft_variables` also drops any index associated with it. op.drop_table("workflow_draft_variables") - # ### end Alembic commands ### \ No newline at end of file + # ### end Alembic commands ### diff --git a/api/migrations/versions/2025_06_06_1424-4474872b0ee6_workflow_draft_varaibles_add_node_execution_id.py b/api/migrations/versions/2025_06_06_1424-4474872b0ee6_workflow_draft_varaibles_add_node_execution_id.py index 9ac945e168..d7a5d116c9 100644 --- a/api/migrations/versions/2025_06_06_1424-4474872b0ee6_workflow_draft_varaibles_add_node_execution_id.py +++ b/api/migrations/versions/2025_06_06_1424-4474872b0ee6_workflow_draft_varaibles_add_node_execution_id.py @@ -57,4 +57,4 @@ def downgrade(): with op.batch_alter_table('workflow_draft_variables', schema=None) as batch_op: batch_op.drop_column('node_execution_id') - # ### end Alembic commands ### \ No newline at end of file + # ### end Alembic commands ### diff --git a/api/migrations/versions/2025_06_19_1633-0ab65e1cc7fa_remove_sequence_number_from_workflow_.py b/api/migrations/versions/2025_06_19_1633-0ab65e1cc7fa_remove_sequence_number_from_workflow_.py index 92220f7bff..29fef77798 100644 --- a/api/migrations/versions/2025_06_19_1633-0ab65e1cc7fa_remove_sequence_number_from_workflow_.py +++ b/api/migrations/versions/2025_06_19_1633-0ab65e1cc7fa_remove_sequence_number_from_workflow_.py @@ -63,4 +63,4 @@ def downgrade(): batch_op.alter_column('sequence_number', nullable=False) batch_op.create_index(batch_op.f('workflow_run_tenant_app_sequence_idx'), ['tenant_id', 'app_id', 'sequence_number'], unique=False) - # ### end Alembic commands ### \ No newline at end of file + # ### end Alembic commands ### diff --git a/api/migrations/versions/23db93619b9d_add_message_files_into_agent_thought.py b/api/migrations/versions/23db93619b9d_add_message_files_into_agent_thought.py index d8aa50a329..f3eef4681e 100644 --- a/api/migrations/versions/23db93619b9d_add_message_files_into_agent_thought.py +++ b/api/migrations/versions/23db93619b9d_add_message_files_into_agent_thought.py @@ -28,4 +28,4 @@ def downgrade(): with op.batch_alter_table('message_agent_thoughts', schema=None) as batch_op: batch_op.drop_column('message_files') - # ### end Alembic commands ### \ No newline at end of file + # ### end Alembic commands ### diff --git a/api/migrations/versions/246ba09cbbdb_add_app_anntation_setting.py b/api/migrations/versions/246ba09cbbdb_add_app_anntation_setting.py index da55a87c1f..9816e92dd1 100644 --- a/api/migrations/versions/246ba09cbbdb_add_app_anntation_setting.py +++ b/api/migrations/versions/246ba09cbbdb_add_app_anntation_setting.py @@ -47,4 +47,4 @@ def downgrade(): batch_op.drop_index('app_annotation_settings_app_idx') op.drop_table('app_annotation_settings') - # ### end Alembic commands ### \ No newline at end of file + # ### end Alembic commands ### diff --git a/api/migrations/versions/2a3aebbbf4bb_add_app_tracing.py b/api/migrations/versions/2a3aebbbf4bb_add_app_tracing.py index 7bd3748273..99b7010612 100644 --- a/api/migrations/versions/2a3aebbbf4bb_add_app_tracing.py +++ b/api/migrations/versions/2a3aebbbf4bb_add_app_tracing.py @@ -30,4 +30,4 @@ def downgrade(): with op.batch_alter_table('apps', schema=None) as batch_op: batch_op.drop_column('tracing') - # ### end Alembic commands ### \ No newline at end of file + # ### end Alembic commands ### diff --git a/api/migrations/versions/2beac44e5f5f_add_is_universal_in_apps.py b/api/migrations/versions/2beac44e5f5f_add_is_universal_in_apps.py index c9ca9139d2..e933623d1c 100644 --- a/api/migrations/versions/2beac44e5f5f_add_is_universal_in_apps.py +++ b/api/migrations/versions/2beac44e5f5f_add_is_universal_in_apps.py @@ -28,4 +28,4 @@ def downgrade(): with op.batch_alter_table('apps', schema=None) as batch_op: batch_op.drop_column('is_universal') - # ### end Alembic commands ### \ No newline at end of file + # ### end Alembic commands ### diff --git a/api/migrations/versions/2c8af9671032_add_qa_document_language.py b/api/migrations/versions/2c8af9671032_add_qa_document_language.py index bb72ed3c5b..1f0c145446 100644 --- a/api/migrations/versions/2c8af9671032_add_qa_document_language.py +++ b/api/migrations/versions/2c8af9671032_add_qa_document_language.py @@ -28,4 +28,4 @@ def downgrade(): with op.batch_alter_table('documents', schema=None) as batch_op: batch_op.drop_column('doc_language') - # ### end Alembic commands ### \ No newline at end of file + # ### end Alembic commands ### diff --git a/api/migrations/versions/2e9819ca5b28_add_tenant_id_in_api_token.py b/api/migrations/versions/2e9819ca5b28_add_tenant_id_in_api_token.py index 3af70345e6..b06a3530b8 100644 --- a/api/migrations/versions/2e9819ca5b28_add_tenant_id_in_api_token.py +++ b/api/migrations/versions/2e9819ca5b28_add_tenant_id_in_api_token.py @@ -33,4 +33,4 @@ def downgrade(): batch_op.drop_index('api_token_tenant_idx') batch_op.drop_column('tenant_id') - # ### end Alembic commands ### \ No newline at end of file + # ### end Alembic commands ### diff --git a/api/migrations/versions/380c6aa5a70d_add_tool_labels_to_agent_thought.py b/api/migrations/versions/380c6aa5a70d_add_tool_labels_to_agent_thought.py index da84253306..6c13818463 100644 --- a/api/migrations/versions/380c6aa5a70d_add_tool_labels_to_agent_thought.py +++ b/api/migrations/versions/380c6aa5a70d_add_tool_labels_to_agent_thought.py @@ -28,4 +28,4 @@ def downgrade(): with op.batch_alter_table('message_agent_thoughts', schema=None) as batch_op: batch_op.drop_column('tool_labels_str') - # ### end Alembic commands ### \ No newline at end of file + # ### end Alembic commands ### diff --git a/api/migrations/versions/3b18fea55204_add_tool_label_bings.py b/api/migrations/versions/3b18fea55204_add_tool_label_bings.py index ef74a06828..bf54c247ea 100644 --- a/api/migrations/versions/3b18fea55204_add_tool_label_bings.py +++ b/api/migrations/versions/3b18fea55204_add_tool_label_bings.py @@ -39,4 +39,4 @@ def downgrade(): batch_op.drop_column('privacy_policy') op.drop_table('tool_label_bindings') - # ### end Alembic commands ### \ No newline at end of file + # ### end Alembic commands ### diff --git a/api/migrations/versions/3c7cac9521c6_add_tags_and_binding_table.py b/api/migrations/versions/3c7cac9521c6_add_tags_and_binding_table.py index 88d215b354..5f11880683 100644 --- a/api/migrations/versions/3c7cac9521c6_add_tags_and_binding_table.py +++ b/api/migrations/versions/3c7cac9521c6_add_tags_and_binding_table.py @@ -59,4 +59,4 @@ def downgrade(): batch_op.drop_index('tag_bind_tag_id_idx') op.drop_table('tag_bindings') - # ### end Alembic commands ### \ No newline at end of file + # ### end Alembic commands ### diff --git a/api/migrations/versions/3ef9b2b6bee6_add_assistant_app.py b/api/migrations/versions/3ef9b2b6bee6_add_assistant_app.py index 5c60600647..4fbc570303 100644 --- a/api/migrations/versions/3ef9b2b6bee6_add_assistant_app.py +++ b/api/migrations/versions/3ef9b2b6bee6_add_assistant_app.py @@ -64,4 +64,4 @@ def downgrade(): op.drop_table('tool_published_apps') op.drop_table('tool_builtin_providers') op.drop_table('tool_api_providers') - # ### end Alembic commands ### \ No newline at end of file + # ### end Alembic commands ### diff --git a/api/migrations/versions/408176b91ad3_add_max_active_requests.py b/api/migrations/versions/408176b91ad3_add_max_active_requests.py index bf9ee5d564..c19a68586f 100644 --- a/api/migrations/versions/408176b91ad3_add_max_active_requests.py +++ b/api/migrations/versions/408176b91ad3_add_max_active_requests.py @@ -30,4 +30,4 @@ def downgrade(): with op.batch_alter_table('apps', schema=None) as batch_op: batch_op.drop_column('max_active_requests') - # ### end Alembic commands ### \ No newline at end of file + # ### end Alembic commands ### diff --git a/api/migrations/versions/42e85ed5564d_conversation_columns_set_nullable.py b/api/migrations/versions/42e85ed5564d_conversation_columns_set_nullable.py index 0fd5f442c1..f388b99b90 100644 --- a/api/migrations/versions/42e85ed5564d_conversation_columns_set_nullable.py +++ b/api/migrations/versions/42e85ed5564d_conversation_columns_set_nullable.py @@ -45,4 +45,4 @@ def downgrade(): existing_type=postgresql.UUID(), nullable=False) - # ### end Alembic commands ### \ No newline at end of file + # ### end Alembic commands ### diff --git a/api/migrations/versions/46976cc39132_add_annotation_histoiry_score.py b/api/migrations/versions/46976cc39132_add_annotation_histoiry_score.py index 83a988ec2f..b47dd3c8ab 100644 --- a/api/migrations/versions/46976cc39132_add_annotation_histoiry_score.py +++ b/api/migrations/versions/46976cc39132_add_annotation_histoiry_score.py @@ -28,4 +28,4 @@ def downgrade(): with op.batch_alter_table('app_annotation_hit_histories', schema=None) as batch_op: batch_op.drop_column('score') - # ### end Alembic commands ### \ No newline at end of file + # ### end Alembic commands ### diff --git a/api/migrations/versions/47cc7df8c4f3_modify_default_model_name_length.py b/api/migrations/versions/47cc7df8c4f3_modify_default_model_name_length.py index a7e417758f..b37928d3c0 100644 --- a/api/migrations/versions/47cc7df8c4f3_modify_default_model_name_length.py +++ b/api/migrations/versions/47cc7df8c4f3_modify_default_model_name_length.py @@ -36,4 +36,4 @@ def downgrade(): type_=sa.VARCHAR(length=40), existing_nullable=False) - # ### end Alembic commands ### \ No newline at end of file + # ### end Alembic commands ### diff --git a/api/migrations/versions/4823da1d26cf_add_tool_file.py b/api/migrations/versions/4823da1d26cf_add_tool_file.py index 9b2cacdc8e..1a473a10fe 100644 --- a/api/migrations/versions/4823da1d26cf_add_tool_file.py +++ b/api/migrations/versions/4823da1d26cf_add_tool_file.py @@ -34,4 +34,4 @@ def upgrade(): def downgrade(): # ### commands auto generated by Alembic - please adjust! ### op.drop_table('tool_files') - # ### end Alembic commands ### \ No newline at end of file + # ### end Alembic commands ### diff --git a/api/migrations/versions/4829e54d2fee_change_message_chain_id_to_nullable.py b/api/migrations/versions/4829e54d2fee_change_message_chain_id_to_nullable.py index 1025ba7a1b..2405021856 100644 --- a/api/migrations/versions/4829e54d2fee_change_message_chain_id_to_nullable.py +++ b/api/migrations/versions/4829e54d2fee_change_message_chain_id_to_nullable.py @@ -32,4 +32,4 @@ def downgrade(): existing_type=postgresql.UUID(), nullable=False) - # ### end Alembic commands ### \ No newline at end of file + # ### end Alembic commands ### diff --git a/api/migrations/versions/4bcffcd64aa4_update_dataset_model_field_null_.py b/api/migrations/versions/4bcffcd64aa4_update_dataset_model_field_null_.py index 49a3a72a43..178bd24e3c 100644 --- a/api/migrations/versions/4bcffcd64aa4_update_dataset_model_field_null_.py +++ b/api/migrations/versions/4bcffcd64aa4_update_dataset_model_field_null_.py @@ -42,4 +42,4 @@ def downgrade(): nullable=False, existing_server_default=sa.text("'text-embedding-ada-002'::character varying")) - # ### end Alembic commands ### \ No newline at end of file + # ### end Alembic commands ### diff --git a/api/migrations/versions/4e99a8df00ff_add_load_balancing.py b/api/migrations/versions/4e99a8df00ff_add_load_balancing.py index 76a7b1e59f..3be4ba4f2a 100644 --- a/api/migrations/versions/4e99a8df00ff_add_load_balancing.py +++ b/api/migrations/versions/4e99a8df00ff_add_load_balancing.py @@ -123,4 +123,4 @@ def downgrade(): batch_op.drop_index('load_balancing_model_config_tenant_provider_model_idx') op.drop_table('load_balancing_model_configs') - # ### end Alembic commands ### \ No newline at end of file + # ### end Alembic commands ### diff --git a/api/migrations/versions/4ff534e1eb11_add_workflow_to_site.py b/api/migrations/versions/4ff534e1eb11_add_workflow_to_site.py index ab94f1d452..c09cf2af60 100644 --- a/api/migrations/versions/4ff534e1eb11_add_workflow_to_site.py +++ b/api/migrations/versions/4ff534e1eb11_add_workflow_to_site.py @@ -30,4 +30,4 @@ def downgrade(): with op.batch_alter_table('sites', schema=None) as batch_op: batch_op.drop_column('show_workflow_steps') - # ### end Alembic commands ### \ No newline at end of file + # ### end Alembic commands ### diff --git a/api/migrations/versions/5022897aaceb_add_model_name_in_embedding.py b/api/migrations/versions/5022897aaceb_add_model_name_in_embedding.py index d56881bc8e..c0f4af5a00 100644 --- a/api/migrations/versions/5022897aaceb_add_model_name_in_embedding.py +++ b/api/migrations/versions/5022897aaceb_add_model_name_in_embedding.py @@ -32,4 +32,4 @@ def downgrade(): batch_op.create_unique_constraint('embedding_hash_idx', ['hash']) batch_op.drop_column('model_name') - # ### end Alembic commands ### \ No newline at end of file + # ### end Alembic commands ### diff --git a/api/migrations/versions/53bf8af60645_update_model.py b/api/migrations/versions/53bf8af60645_update_model.py index 27721108d2..3d0928d013 100644 --- a/api/migrations/versions/53bf8af60645_update_model.py +++ b/api/migrations/versions/53bf8af60645_update_model.py @@ -38,4 +38,4 @@ def downgrade(): existing_nullable=False, existing_server_default=sa.text("''::character varying")) - # ### end Alembic commands ### \ No newline at end of file + # ### end Alembic commands ### diff --git a/api/migrations/versions/563cf8bf777b_enable_tool_file_without_conversation_id.py b/api/migrations/versions/563cf8bf777b_enable_tool_file_without_conversation_id.py index 4a16c66d53..299f442de9 100644 --- a/api/migrations/versions/563cf8bf777b_enable_tool_file_without_conversation_id.py +++ b/api/migrations/versions/563cf8bf777b_enable_tool_file_without_conversation_id.py @@ -32,4 +32,4 @@ def downgrade(): existing_type=postgresql.UUID(), nullable=False) - # ### end Alembic commands ### \ No newline at end of file + # ### end Alembic commands ### diff --git a/api/migrations/versions/5fda94355fce_custom_disclaimer.py b/api/migrations/versions/5fda94355fce_custom_disclaimer.py index aff2061e6e..73bcdc4500 100644 --- a/api/migrations/versions/5fda94355fce_custom_disclaimer.py +++ b/api/migrations/versions/5fda94355fce_custom_disclaimer.py @@ -42,4 +42,4 @@ def downgrade(): with op.batch_alter_table('recommended_apps', schema=None) as batch_op: batch_op.drop_column('custom_disclaimer') - # ### end Alembic commands ### \ No newline at end of file + # ### end Alembic commands ### diff --git a/api/migrations/versions/614f77cecc48_add_last_active_at.py b/api/migrations/versions/614f77cecc48_add_last_active_at.py index 8dff00c69e..182f8f89f1 100644 --- a/api/migrations/versions/614f77cecc48_add_last_active_at.py +++ b/api/migrations/versions/614f77cecc48_add_last_active_at.py @@ -28,4 +28,4 @@ def downgrade(): with op.batch_alter_table('accounts', schema=None) as batch_op: batch_op.drop_column('last_active_at') - # ### end Alembic commands ### \ No newline at end of file + # ### end Alembic commands ### diff --git a/api/migrations/versions/63f9175e515b_merge_branches.py b/api/migrations/versions/63f9175e515b_merge_branches.py index 0eeeb78e7e..0623659941 100644 --- a/api/migrations/versions/63f9175e515b_merge_branches.py +++ b/api/migrations/versions/63f9175e515b_merge_branches.py @@ -19,4 +19,4 @@ def upgrade(): def downgrade(): - pass \ No newline at end of file + pass diff --git a/api/migrations/versions/64a70a7aab8b_add_workflow_run_index.py b/api/migrations/versions/64a70a7aab8b_add_workflow_run_index.py index f70d435c95..73242908f4 100644 --- a/api/migrations/versions/64a70a7aab8b_add_workflow_run_index.py +++ b/api/migrations/versions/64a70a7aab8b_add_workflow_run_index.py @@ -29,4 +29,4 @@ def downgrade(): with op.batch_alter_table('workflow_runs', schema=None) as batch_op: batch_op.drop_index('workflow_run_tenant_app_sequence_idx') - # ### end Alembic commands ### \ No newline at end of file + # ### end Alembic commands ### diff --git a/api/migrations/versions/64b051264f32_init.py b/api/migrations/versions/64b051264f32_init.py index bfc98f4459..b0fb3deac6 100644 --- a/api/migrations/versions/64b051264f32_init.py +++ b/api/migrations/versions/64b051264f32_init.py @@ -794,4 +794,4 @@ def downgrade(): op.drop_table('account_integrates') op.execute('DROP EXTENSION IF EXISTS "uuid-ossp";') - # ### end Alembic commands ### \ No newline at end of file + # ### end Alembic commands ### diff --git a/api/migrations/versions/675b5321501b_add_node_execution_id_into_node_.py b/api/migrations/versions/675b5321501b_add_node_execution_id_into_node_.py index f9459112f1..55824945da 100644 --- a/api/migrations/versions/675b5321501b_add_node_execution_id_into_node_.py +++ b/api/migrations/versions/675b5321501b_add_node_execution_id_into_node_.py @@ -32,4 +32,4 @@ def downgrade(): batch_op.drop_index('workflow_node_execution_id_idx') batch_op.drop_column('node_execution_id') - # ### end Alembic commands ### \ No newline at end of file + # ### end Alembic commands ### diff --git a/api/migrations/versions/6dcb43972bdc_add_dataset_retriever_resource.py b/api/migrations/versions/6dcb43972bdc_add_dataset_retriever_resource.py index bcaeecc59a..da27dd4426 100644 --- a/api/migrations/versions/6dcb43972bdc_add_dataset_retriever_resource.py +++ b/api/migrations/versions/6dcb43972bdc_add_dataset_retriever_resource.py @@ -51,4 +51,4 @@ def downgrade(): batch_op.drop_index('dataset_retriever_resource_message_id_idx') op.drop_table('dataset_retriever_resources') - # ### end Alembic commands ### \ No newline at end of file + # ### end Alembic commands ### diff --git a/api/migrations/versions/6e2cfb077b04_add_dataset_collection_binding.py b/api/migrations/versions/6e2cfb077b04_add_dataset_collection_binding.py index d8f5283a73..4fa322f693 100644 --- a/api/migrations/versions/6e2cfb077b04_add_dataset_collection_binding.py +++ b/api/migrations/versions/6e2cfb077b04_add_dataset_collection_binding.py @@ -44,4 +44,4 @@ def downgrade(): batch_op.drop_index('provider_model_name_idx') op.drop_table('dataset_collection_bindings') - # ### end Alembic commands ### \ No newline at end of file + # ### end Alembic commands ### diff --git a/api/migrations/versions/6e957a32015b_add_embedding_cache_created_at_index.py b/api/migrations/versions/6e957a32015b_add_embedding_cache_created_at_index.py index e4517ab10c..7445f664cd 100644 --- a/api/migrations/versions/6e957a32015b_add_embedding_cache_created_at_index.py +++ b/api/migrations/versions/6e957a32015b_add_embedding_cache_created_at_index.py @@ -29,4 +29,4 @@ def downgrade(): with op.batch_alter_table('embeddings', schema=None) as batch_op: batch_op.drop_index('created_at_idx') - # ### end Alembic commands ### \ No newline at end of file + # ### end Alembic commands ### diff --git a/api/migrations/versions/714aafe25d39_add_anntation_history_match_response.py b/api/migrations/versions/714aafe25d39_add_anntation_history_match_response.py index 5730582ac5..498b46e3c4 100644 --- a/api/migrations/versions/714aafe25d39_add_anntation_history_match_response.py +++ b/api/migrations/versions/714aafe25d39_add_anntation_history_match_response.py @@ -30,4 +30,4 @@ def downgrade(): batch_op.drop_column('annotation_content') batch_op.drop_column('annotation_question') - # ### end Alembic commands ### \ No newline at end of file + # ### end Alembic commands ### diff --git a/api/migrations/versions/77e83833755c_add_app_config_retriever_resource.py b/api/migrations/versions/77e83833755c_add_app_config_retriever_resource.py index 24d45c728d..c5d8c3d88d 100644 --- a/api/migrations/versions/77e83833755c_add_app_config_retriever_resource.py +++ b/api/migrations/versions/77e83833755c_add_app_config_retriever_resource.py @@ -28,4 +28,4 @@ def downgrade(): with op.batch_alter_table('app_model_configs', schema=None) as batch_op: batch_op.drop_column('retriever_resource') - # ### end Alembic commands ### \ No newline at end of file + # ### end Alembic commands ### diff --git a/api/migrations/versions/7b45942e39bb_add_api_key_auth_binding.py b/api/migrations/versions/7b45942e39bb_add_api_key_auth_binding.py index 633095af8f..2ba0e13caa 100644 --- a/api/migrations/versions/7b45942e39bb_add_api_key_auth_binding.py +++ b/api/migrations/versions/7b45942e39bb_add_api_key_auth_binding.py @@ -64,4 +64,4 @@ def downgrade(): batch_op.drop_index('data_source_api_key_auth_binding_provider_idx') op.drop_table('data_source_api_key_auth_bindings') - # ### end Alembic commands ### \ No newline at end of file + # ### end Alembic commands ### diff --git a/api/migrations/versions/7bdef072e63a_add_workflow_tool.py b/api/migrations/versions/7bdef072e63a_add_workflow_tool.py index 840a95b9f4..f09a682f28 100644 --- a/api/migrations/versions/7bdef072e63a_add_workflow_tool.py +++ b/api/migrations/versions/7bdef072e63a_add_workflow_tool.py @@ -39,4 +39,4 @@ def upgrade(): def downgrade(): op.drop_table('tool_workflow_providers') - # ### end Alembic commands ### \ No newline at end of file + # ### end Alembic commands ### diff --git a/api/migrations/versions/7ce5a52e4eee_add_tool_providers.py b/api/migrations/versions/7ce5a52e4eee_add_tool_providers.py index f8dcb406bc..881ffec61d 100644 --- a/api/migrations/versions/7ce5a52e4eee_add_tool_providers.py +++ b/api/migrations/versions/7ce5a52e4eee_add_tool_providers.py @@ -41,4 +41,4 @@ def downgrade(): batch_op.drop_column('sensitive_word_avoidance') op.drop_table('tool_providers') - # ### end Alembic commands ### \ No newline at end of file + # ### end Alembic commands ### diff --git a/api/migrations/versions/7e6a8693e07a_add_table_dataset_permissions.py b/api/migrations/versions/7e6a8693e07a_add_table_dataset_permissions.py index 9a206ceb26..865572f3a7 100644 --- a/api/migrations/versions/7e6a8693e07a_add_table_dataset_permissions.py +++ b/api/migrations/versions/7e6a8693e07a_add_table_dataset_permissions.py @@ -39,4 +39,4 @@ def downgrade(): batch_op.drop_index('idx_dataset_permissions_dataset_id') batch_op.drop_index('idx_dataset_permissions_account_id') op.drop_table('dataset_permissions') - # ### end Alembic commands ### \ No newline at end of file + # ### end Alembic commands ### diff --git a/api/migrations/versions/853f9b9cd3b6_add_message_price_unit.py b/api/migrations/versions/853f9b9cd3b6_add_message_price_unit.py index 7bb4e9287a..5a8476501b 100644 --- a/api/migrations/versions/853f9b9cd3b6_add_message_price_unit.py +++ b/api/migrations/versions/853f9b9cd3b6_add_message_price_unit.py @@ -39,4 +39,4 @@ def downgrade(): batch_op.drop_column('answer_price_unit') batch_op.drop_column('message_price_unit') - # ### end Alembic commands ### \ No newline at end of file + # ### end Alembic commands ### diff --git a/api/migrations/versions/88072f0caa04_add_custom_config_in_tenant.py b/api/migrations/versions/88072f0caa04_add_custom_config_in_tenant.py index dc7994fb11..f7625bff8c 100644 --- a/api/migrations/versions/88072f0caa04_add_custom_config_in_tenant.py +++ b/api/migrations/versions/88072f0caa04_add_custom_config_in_tenant.py @@ -28,4 +28,4 @@ def downgrade(): with op.batch_alter_table('tenants', schema=None) as batch_op: batch_op.drop_column('custom_config') - # ### end Alembic commands ### \ No newline at end of file + # ### end Alembic commands ### diff --git a/api/migrations/versions/89c7899ca936_.py b/api/migrations/versions/89c7899ca936_.py index c44944f4ba..0fad39fa57 100644 --- a/api/migrations/versions/89c7899ca936_.py +++ b/api/migrations/versions/89c7899ca936_.py @@ -34,4 +34,4 @@ def downgrade(): type_=sa.VARCHAR(length=255), existing_nullable=True) - # ### end Alembic commands ### \ No newline at end of file + # ### end Alembic commands ### diff --git a/api/migrations/versions/8ae9bc661daa_add_tool_conversation_variables_idx.py b/api/migrations/versions/8ae9bc661daa_add_tool_conversation_variables_idx.py index c9e60e414d..f4c4ebb51b 100644 --- a/api/migrations/versions/8ae9bc661daa_add_tool_conversation_variables_idx.py +++ b/api/migrations/versions/8ae9bc661daa_add_tool_conversation_variables_idx.py @@ -29,4 +29,4 @@ def downgrade(): batch_op.drop_index('user_id_idx') batch_op.drop_index('conversation_id_idx') - # ### end Alembic commands ### \ No newline at end of file + # ### end Alembic commands ### diff --git a/api/migrations/versions/8d2d099ceb74_add_qa_model_support.py b/api/migrations/versions/8d2d099ceb74_add_qa_model_support.py index d745edeb8e..849103b071 100644 --- a/api/migrations/versions/8d2d099ceb74_add_qa_model_support.py +++ b/api/migrations/versions/8d2d099ceb74_add_qa_model_support.py @@ -39,4 +39,4 @@ def downgrade(): batch_op.drop_column('updated_by') batch_op.drop_column('answer') - # ### end Alembic commands ### \ No newline at end of file + # ### end Alembic commands ### diff --git a/api/migrations/versions/8e5588e6412e_add_environment_variable_to_workflow_.py b/api/migrations/versions/8e5588e6412e_add_environment_variable_to_workflow_.py index 1ccac858ee..ec2336da4d 100644 --- a/api/migrations/versions/8e5588e6412e_add_environment_variable_to_workflow_.py +++ b/api/migrations/versions/8e5588e6412e_add_environment_variable_to_workflow_.py @@ -30,4 +30,4 @@ def downgrade(): with op.batch_alter_table('workflows', schema=None) as batch_op: batch_op.drop_column('environment_variables') - # ### end Alembic commands ### \ No newline at end of file + # ### end Alembic commands ### diff --git a/api/migrations/versions/8ec536f3c800_rename_api_provider_credentails.py b/api/migrations/versions/8ec536f3c800_rename_api_provider_credentails.py index ee38be4376..6cafc198aa 100644 --- a/api/migrations/versions/8ec536f3c800_rename_api_provider_credentails.py +++ b/api/migrations/versions/8ec536f3c800_rename_api_provider_credentails.py @@ -28,4 +28,4 @@ def downgrade(): with op.batch_alter_table('tool_api_providers', schema=None) as batch_op: batch_op.drop_column('credentials_str') - # ### end Alembic commands ### \ No newline at end of file + # ### end Alembic commands ### diff --git a/api/migrations/versions/8fe468ba0ca5_add_gpt4v_supports.py b/api/migrations/versions/8fe468ba0ca5_add_gpt4v_supports.py index 4488ccc992..01d5631510 100644 --- a/api/migrations/versions/8fe468ba0ca5_add_gpt4v_supports.py +++ b/api/migrations/versions/8fe468ba0ca5_add_gpt4v_supports.py @@ -56,4 +56,4 @@ def downgrade(): batch_op.drop_index('message_file_created_by_idx') op.drop_table('message_files') - # ### end Alembic commands ### \ No newline at end of file + # ### end Alembic commands ### diff --git a/api/migrations/versions/968fff4c0ab9_add_api_based_extension.py b/api/migrations/versions/968fff4c0ab9_add_api_based_extension.py index 452db69fea..207a9c841f 100644 --- a/api/migrations/versions/968fff4c0ab9_add_api_based_extension.py +++ b/api/migrations/versions/968fff4c0ab9_add_api_based_extension.py @@ -42,4 +42,4 @@ def downgrade(): op.drop_table('api_based_extensions') - # ### end Alembic commands ### \ No newline at end of file + # ### end Alembic commands ### diff --git a/api/migrations/versions/9e98fbaffb88_add_workflow_tool_version.py b/api/migrations/versions/9e98fbaffb88_add_workflow_tool_version.py index dfd5baeb89..92f41f0abd 100644 --- a/api/migrations/versions/9e98fbaffb88_add_workflow_tool_version.py +++ b/api/migrations/versions/9e98fbaffb88_add_workflow_tool_version.py @@ -24,4 +24,4 @@ def upgrade(): def downgrade(): with op.batch_alter_table('tool_workflow_providers', schema=None) as batch_op: - batch_op.drop_column('version') \ No newline at end of file + batch_op.drop_column('version') diff --git a/api/migrations/versions/9f4e3427ea84_add_created_by_role.py b/api/migrations/versions/9f4e3427ea84_add_created_by_role.py index 64ed6630f9..c7a98b4ac6 100644 --- a/api/migrations/versions/9f4e3427ea84_add_created_by_role.py +++ b/api/migrations/versions/9f4e3427ea84_add_created_by_role.py @@ -42,4 +42,4 @@ def downgrade(): batch_op.create_index('pinned_conversation_conversation_idx', ['app_id', 'conversation_id', 'created_by'], unique=False) batch_op.drop_column('created_by_role') - # ### end Alembic commands ### \ No newline at end of file + # ### end Alembic commands ### diff --git a/api/migrations/versions/9fafbd60eca1_add_message_file_belongs_to.py b/api/migrations/versions/9fafbd60eca1_add_message_file_belongs_to.py index df74772002..968906bdd7 100644 --- a/api/migrations/versions/9fafbd60eca1_add_message_file_belongs_to.py +++ b/api/migrations/versions/9fafbd60eca1_add_message_file_belongs_to.py @@ -28,4 +28,4 @@ def downgrade(): with op.batch_alter_table('message_files', schema=None) as batch_op: batch_op.drop_column('belongs_to') - # ### end Alembic commands ### \ No newline at end of file + # ### end Alembic commands ### diff --git a/api/migrations/versions/a45f4dfde53b_add_language_to_recommend_apps.py b/api/migrations/versions/a45f4dfde53b_add_language_to_recommend_apps.py index a47dcb0504..3014978110 100644 --- a/api/migrations/versions/a45f4dfde53b_add_language_to_recommend_apps.py +++ b/api/migrations/versions/a45f4dfde53b_add_language_to_recommend_apps.py @@ -32,4 +32,4 @@ def downgrade(): batch_op.create_index('recommended_app_is_listed_idx', ['is_listed'], unique=False) batch_op.drop_column('language') - # ### end Alembic commands ### \ No newline at end of file + # ### end Alembic commands ### diff --git a/api/migrations/versions/a5b56fb053ef_app_config_add_speech_to_text.py b/api/migrations/versions/a5b56fb053ef_app_config_add_speech_to_text.py index edb46593ca..acb6812434 100644 --- a/api/migrations/versions/a5b56fb053ef_app_config_add_speech_to_text.py +++ b/api/migrations/versions/a5b56fb053ef_app_config_add_speech_to_text.py @@ -28,4 +28,4 @@ def downgrade(): with op.batch_alter_table('app_model_configs', schema=None) as batch_op: batch_op.drop_column('speech_to_text') - # ### end Alembic commands ### \ No newline at end of file + # ### end Alembic commands ### diff --git a/api/migrations/versions/a8d7385a7b66_add_embeddings_provider_name.py b/api/migrations/versions/a8d7385a7b66_add_embeddings_provider_name.py index ea55074ae0..1ee01381d8 100644 --- a/api/migrations/versions/a8d7385a7b66_add_embeddings_provider_name.py +++ b/api/migrations/versions/a8d7385a7b66_add_embeddings_provider_name.py @@ -31,4 +31,4 @@ def downgrade(): batch_op.drop_constraint('embedding_hash_idx', type_='unique') batch_op.create_unique_constraint('embedding_hash_idx', ['model_name', 'hash']) batch_op.drop_column('provider_name') - # ### end Alembic commands ### \ No newline at end of file + # ### end Alembic commands ### diff --git a/api/migrations/versions/a8f9b3c45e4a_add_tenant_id_db_index.py b/api/migrations/versions/a8f9b3c45e4a_add_tenant_id_db_index.py index ec8dbb9933..62d6faeb1d 100644 --- a/api/migrations/versions/a8f9b3c45e4a_add_tenant_id_db_index.py +++ b/api/migrations/versions/a8f9b3c45e4a_add_tenant_id_db_index.py @@ -33,4 +33,4 @@ def downgrade(): with op.batch_alter_table('document_segments', schema=None) as batch_op: batch_op.drop_index('document_segment_tenant_idx') - # ### end Alembic commands ### \ No newline at end of file + # ### end Alembic commands ### diff --git a/api/migrations/versions/a9836e3baeee_add_external_data_tools_in_app_model_.py b/api/migrations/versions/a9836e3baeee_add_external_data_tools_in_app_model_.py index 32407f37ea..5dcb630aed 100644 --- a/api/migrations/versions/a9836e3baeee_add_external_data_tools_in_app_model_.py +++ b/api/migrations/versions/a9836e3baeee_add_external_data_tools_in_app_model_.py @@ -28,4 +28,4 @@ def downgrade(): with op.batch_alter_table('app_model_configs', schema=None) as batch_op: batch_op.drop_column('external_data_tools') - # ### end Alembic commands ### \ No newline at end of file + # ### end Alembic commands ### diff --git a/api/migrations/versions/ab23c11305d4_add_dataset_query_variable_at_app_model_.py b/api/migrations/versions/ab23c11305d4_add_dataset_query_variable_at_app_model_.py index a90172d575..eee41bf4e0 100644 --- a/api/migrations/versions/ab23c11305d4_add_dataset_query_variable_at_app_model_.py +++ b/api/migrations/versions/ab23c11305d4_add_dataset_query_variable_at_app_model_.py @@ -28,4 +28,4 @@ def downgrade(): with op.batch_alter_table('app_model_configs', schema=None) as batch_op: batch_op.drop_column('dataset_query_variable') - # ### end Alembic commands ### \ No newline at end of file + # ### end Alembic commands ### diff --git a/api/migrations/versions/ad472b61a054_add_api_provider_icon.py b/api/migrations/versions/ad472b61a054_add_api_provider_icon.py index 6a953c69ce..0ddaf1eb0a 100644 --- a/api/migrations/versions/ad472b61a054_add_api_provider_icon.py +++ b/api/migrations/versions/ad472b61a054_add_api_provider_icon.py @@ -28,4 +28,4 @@ def downgrade(): with op.batch_alter_table('tool_api_providers', schema=None) as batch_op: batch_op.drop_column('icon') - # ### end Alembic commands ### \ No newline at end of file + # ### end Alembic commands ### diff --git a/api/migrations/versions/b24be59fbb04_.py b/api/migrations/versions/b24be59fbb04_.py index 3f4fdbe26c..29ba859f2b 100644 --- a/api/migrations/versions/b24be59fbb04_.py +++ b/api/migrations/versions/b24be59fbb04_.py @@ -28,4 +28,4 @@ def downgrade(): with op.batch_alter_table('app_model_configs', schema=None) as batch_op: batch_op.drop_column('text_to_speech') - # ### end Alembic commands ### \ No newline at end of file + # ### end Alembic commands ### diff --git a/api/migrations/versions/b2602e131636_add_workflow_run_id_index_for_message.py b/api/migrations/versions/b2602e131636_add_workflow_run_id_index_for_message.py index 2592e918aa..c9a6a5a5a7 100644 --- a/api/migrations/versions/b2602e131636_add_workflow_run_id_index_for_message.py +++ b/api/migrations/versions/b2602e131636_add_workflow_run_id_index_for_message.py @@ -29,4 +29,4 @@ def downgrade(): with op.batch_alter_table('messages', schema=None) as batch_op: batch_op.drop_index('message_workflow_run_id_idx') - # ### end Alembic commands ### \ No newline at end of file + # ### end Alembic commands ### diff --git a/api/migrations/versions/b289e2408ee2_add_workflow.py b/api/migrations/versions/b289e2408ee2_add_workflow.py index be074b4af3..966f86c05f 100644 --- a/api/migrations/versions/b289e2408ee2_add_workflow.py +++ b/api/migrations/versions/b289e2408ee2_add_workflow.py @@ -139,4 +139,4 @@ def downgrade(): batch_op.drop_index('workflow_app_log_app_idx') op.drop_table('workflow_app_logs') - # ### end Alembic commands ### \ No newline at end of file + # ### end Alembic commands ### diff --git a/api/migrations/versions/b3a09c049e8e_add_advanced_prompt_templates.py b/api/migrations/versions/b3a09c049e8e_add_advanced_prompt_templates.py index 87994adeea..5682eff030 100644 --- a/api/migrations/versions/b3a09c049e8e_add_advanced_prompt_templates.py +++ b/api/migrations/versions/b3a09c049e8e_add_advanced_prompt_templates.py @@ -34,4 +34,4 @@ def downgrade(): batch_op.drop_column('chat_prompt_config') batch_op.drop_column('prompt_type') - # ### end Alembic commands ### \ No newline at end of file + # ### end Alembic commands ### diff --git a/api/migrations/versions/b5429b71023c_messages_columns_set_nullable.py b/api/migrations/versions/b5429b71023c_messages_columns_set_nullable.py index a84c807929..ee81fdab28 100644 --- a/api/migrations/versions/b5429b71023c_messages_columns_set_nullable.py +++ b/api/migrations/versions/b5429b71023c_messages_columns_set_nullable.py @@ -38,4 +38,4 @@ def downgrade(): existing_type=sa.VARCHAR(length=255), nullable=False) - # ### end Alembic commands ### \ No newline at end of file + # ### end Alembic commands ### diff --git a/api/migrations/versions/b69ca54b9208_add_chatbot_color_theme.py b/api/migrations/versions/b69ca54b9208_add_chatbot_color_theme.py index df6569fb3c..dd5a7495e4 100644 --- a/api/migrations/versions/b69ca54b9208_add_chatbot_color_theme.py +++ b/api/migrations/versions/b69ca54b9208_add_chatbot_color_theme.py @@ -32,4 +32,4 @@ def downgrade(): batch_op.drop_column('chat_color_theme_inverted') batch_op.drop_column('chat_color_theme') - # ### end Alembic commands ### \ No newline at end of file + # ### end Alembic commands ### diff --git a/api/migrations/versions/bf0aec5ba2cf_add_provider_order.py b/api/migrations/versions/bf0aec5ba2cf_add_provider_order.py index 2ff0460bda..dfa1517462 100644 --- a/api/migrations/versions/bf0aec5ba2cf_add_provider_order.py +++ b/api/migrations/versions/bf0aec5ba2cf_add_provider_order.py @@ -49,4 +49,4 @@ def downgrade(): batch_op.drop_index('provider_order_tenant_provider_idx') op.drop_table('provider_orders') - # ### end Alembic commands ### \ No newline at end of file + # ### end Alembic commands ### diff --git a/api/migrations/versions/c031d46af369_remove_app_model_config_trace_config_.py b/api/migrations/versions/c031d46af369_remove_app_model_config_trace_config_.py index 5daa8b2a4a..f87819c367 100644 --- a/api/migrations/versions/c031d46af369_remove_app_model_config_trace_config_.py +++ b/api/migrations/versions/c031d46af369_remove_app_model_config_trace_config_.py @@ -41,4 +41,4 @@ def downgrade(): # ### commands auto generated by Alembic - please adjust! ### op.drop_table('trace_app_config') - # ### end Alembic commands ### \ No newline at end of file + # ### end Alembic commands ### diff --git a/api/migrations/versions/c3311b089690_add_tool_meta.py b/api/migrations/versions/c3311b089690_add_tool_meta.py index e9f6d8a72b..e075535b0d 100644 --- a/api/migrations/versions/c3311b089690_add_tool_meta.py +++ b/api/migrations/versions/c3311b089690_add_tool_meta.py @@ -28,4 +28,4 @@ def downgrade(): with op.batch_alter_table('message_agent_thoughts', schema=None) as batch_op: batch_op.drop_column('tool_meta_str') - # ### end Alembic commands ### \ No newline at end of file + # ### end Alembic commands ### diff --git a/api/migrations/versions/c71211c8f604_add_tool_invoke_model_log.py b/api/migrations/versions/c71211c8f604_add_tool_invoke_model_log.py index 1c2f1ca67d..95fb8f5d0e 100644 --- a/api/migrations/versions/c71211c8f604_add_tool_invoke_model_log.py +++ b/api/migrations/versions/c71211c8f604_add_tool_invoke_model_log.py @@ -46,4 +46,4 @@ def upgrade(): def downgrade(): # ### commands auto generated by Alembic - please adjust! ### op.drop_table('tool_model_invokes') - # ### end Alembic commands ### \ No newline at end of file + # ### end Alembic commands ### diff --git a/api/migrations/versions/cc04d0998d4d_set_model_config_column_nullable.py b/api/migrations/versions/cc04d0998d4d_set_model_config_column_nullable.py index 0ea03cbaae..aefbe43f14 100644 --- a/api/migrations/versions/cc04d0998d4d_set_model_config_column_nullable.py +++ b/api/migrations/versions/cc04d0998d4d_set_model_config_column_nullable.py @@ -67,4 +67,4 @@ def downgrade(): existing_type=sa.VARCHAR(length=255), nullable=False) - # ### end Alembic commands ### \ No newline at end of file + # ### end Alembic commands ### diff --git a/api/migrations/versions/d3d503a3471c_add_is_deleted_to_conversations.py b/api/migrations/versions/d3d503a3471c_add_is_deleted_to_conversations.py index 9e33c37e9f..89355e57ad 100644 --- a/api/migrations/versions/d3d503a3471c_add_is_deleted_to_conversations.py +++ b/api/migrations/versions/d3d503a3471c_add_is_deleted_to_conversations.py @@ -28,4 +28,4 @@ def downgrade(): with op.batch_alter_table('conversations', schema=None) as batch_op: batch_op.drop_column('is_deleted') - # ### end Alembic commands ### \ No newline at end of file + # ### end Alembic commands ### diff --git a/api/migrations/versions/de95f5c77138_migration_serpapi_api_key.py b/api/migrations/versions/de95f5c77138_migration_serpapi_api_key.py index e8ef1a7e9a..c18126286c 100644 --- a/api/migrations/versions/de95f5c77138_migration_serpapi_api_key.py +++ b/api/migrations/versions/de95f5c77138_migration_serpapi_api_key.py @@ -111,4 +111,4 @@ def upgrade(): def downgrade(): # ### commands auto generated by Alembic - please adjust! ### pass - # ### end Alembic commands ### \ No newline at end of file + # ### end Alembic commands ### diff --git a/api/migrations/versions/dfb3b7f477da_add_tool_index.py b/api/migrations/versions/dfb3b7f477da_add_tool_index.py index 930fc6d477..e14a65a1ff 100644 --- a/api/migrations/versions/dfb3b7f477da_add_tool_index.py +++ b/api/migrations/versions/dfb3b7f477da_add_tool_index.py @@ -33,4 +33,4 @@ def downgrade(): with op.batch_alter_table('tool_api_providers', schema=None) as batch_op: batch_op.drop_constraint('unique_api_tool_provider', type_='unique') - # ### end Alembic commands ### \ No newline at end of file + # ### end Alembic commands ### diff --git a/api/migrations/versions/e1901f623fd0_add_annotation_reply.py b/api/migrations/versions/e1901f623fd0_add_annotation_reply.py index dcaab4c70b..32902c8eb0 100644 --- a/api/migrations/versions/e1901f623fd0_add_annotation_reply.py +++ b/api/migrations/versions/e1901f623fd0_add_annotation_reply.py @@ -76,4 +76,4 @@ def downgrade(): batch_op.drop_index('app_annotation_hit_histories_account_idx') op.drop_table('app_annotation_hit_histories') - # ### end Alembic commands ### \ No newline at end of file + # ### end Alembic commands ### diff --git a/api/migrations/versions/e2eacc9a1b63_add_status_for_message.py b/api/migrations/versions/e2eacc9a1b63_add_status_for_message.py index 685a2063ea..08f994a41f 100644 --- a/api/migrations/versions/e2eacc9a1b63_add_status_for_message.py +++ b/api/migrations/versions/e2eacc9a1b63_add_status_for_message.py @@ -40,4 +40,4 @@ def downgrade(): with op.batch_alter_table('conversations', schema=None) as batch_op: batch_op.drop_column('invoke_from') - # ### end Alembic commands ### \ No newline at end of file + # ### end Alembic commands ### diff --git a/api/migrations/versions/e32f6ccb87c6_e08af0a69ccefbb59fa80c778efee300bb780980.py b/api/migrations/versions/e32f6ccb87c6_e08af0a69ccefbb59fa80c778efee300bb780980.py index bbc531b1da..3d7dd1fabf 100644 --- a/api/migrations/versions/e32f6ccb87c6_e08af0a69ccefbb59fa80c778efee300bb780980.py +++ b/api/migrations/versions/e32f6ccb87c6_e08af0a69ccefbb59fa80c778efee300bb780980.py @@ -43,4 +43,4 @@ def downgrade(): batch_op.drop_index('source_binding_tenant_id_idx') op.drop_table('data_source_bindings') - # ### end Alembic commands ### \ No newline at end of file + # ### end Alembic commands ### diff --git a/api/migrations/versions/e35ed59becda_modify_quota_limit_field_type.py b/api/migrations/versions/e35ed59becda_modify_quota_limit_field_type.py index 42bc2fa40a..627366b36d 100644 --- a/api/migrations/versions/e35ed59becda_modify_quota_limit_field_type.py +++ b/api/migrations/versions/e35ed59becda_modify_quota_limit_field_type.py @@ -42,4 +42,4 @@ def downgrade(): type_=sa.INTEGER(), existing_nullable=True) - # ### end Alembic commands ### \ No newline at end of file + # ### end Alembic commands ### diff --git a/api/migrations/versions/e8883b0148c9_add_dataset_model_name.py b/api/migrations/versions/e8883b0148c9_add_dataset_model_name.py index 56dd58e356..875683d68e 100644 --- a/api/migrations/versions/e8883b0148c9_add_dataset_model_name.py +++ b/api/migrations/versions/e8883b0148c9_add_dataset_model_name.py @@ -30,4 +30,4 @@ def downgrade(): batch_op.drop_column('embedding_model_provider') batch_op.drop_column('embedding_model') - # ### end Alembic commands ### \ No newline at end of file + # ### end Alembic commands ### diff --git a/api/migrations/versions/eeb2e349e6ac_increase_max_model_name_length.py b/api/migrations/versions/eeb2e349e6ac_increase_max_model_name_length.py index b9522d01a7..434531b6c8 100644 --- a/api/migrations/versions/eeb2e349e6ac_increase_max_model_name_length.py +++ b/api/migrations/versions/eeb2e349e6ac_increase_max_model_name_length.py @@ -50,4 +50,4 @@ def downgrade(): type_=sa.VARCHAR(length=40), existing_nullable=False) - # ### end Alembic commands ### \ No newline at end of file + # ### end Alembic commands ### diff --git a/api/migrations/versions/f25003750af4_add_created_updated_at.py b/api/migrations/versions/f25003750af4_add_created_updated_at.py index 313a1f0d1d..178eaf2380 100644 --- a/api/migrations/versions/f25003750af4_add_created_updated_at.py +++ b/api/migrations/versions/f25003750af4_add_created_updated_at.py @@ -30,4 +30,4 @@ def downgrade(): batch_op.drop_column('updated_at') batch_op.drop_column('created_at') - # ### end Alembic commands ### \ No newline at end of file + # ### end Alembic commands ### diff --git a/api/migrations/versions/f2a6fc85e260_add_anntation_history_message_id.py b/api/migrations/versions/f2a6fc85e260_add_anntation_history_message_id.py index 0d84c12839..dc9392a92c 100644 --- a/api/migrations/versions/f2a6fc85e260_add_anntation_history_message_id.py +++ b/api/migrations/versions/f2a6fc85e260_add_anntation_history_message_id.py @@ -31,4 +31,4 @@ def downgrade(): batch_op.drop_index('app_annotation_hit_histories_message_idx') batch_op.drop_column('message_id') - # ### end Alembic commands ### \ No newline at end of file + # ### end Alembic commands ### diff --git a/api/migrations/versions/f9107f83abab_add_desc_for_apps.py b/api/migrations/versions/f9107f83abab_add_desc_for_apps.py index dc60e7c991..3e5ae0d67d 100644 --- a/api/migrations/versions/f9107f83abab_add_desc_for_apps.py +++ b/api/migrations/versions/f9107f83abab_add_desc_for_apps.py @@ -28,4 +28,4 @@ def downgrade(): with op.batch_alter_table('apps', schema=None) as batch_op: batch_op.drop_column('description') - # ### end Alembic commands ### \ No newline at end of file + # ### end Alembic commands ### diff --git a/api/migrations/versions/fca025d3b60f_add_dataset_retrival_model.py b/api/migrations/versions/fca025d3b60f_add_dataset_retrival_model.py index 6500a79ff8..52495be60a 100644 --- a/api/migrations/versions/fca025d3b60f_add_dataset_retrival_model.py +++ b/api/migrations/versions/fca025d3b60f_add_dataset_retrival_model.py @@ -40,4 +40,4 @@ def downgrade(): sa.PrimaryKeyConstraint('id', name='sessions_pkey'), sa.UniqueConstraint('session_id', name='sessions_session_id_key') ) - # ### end Alembic commands ### \ No newline at end of file + # ### end Alembic commands ### diff --git a/api/migrations/versions/fecff1c3da27_remove_extra_tracing_app_config_table .py b/api/migrations/versions/fecff1c3da27_remove_extra_tracing_app_config_table .py index 5057088ac4..6f76a361d9 100644 --- a/api/migrations/versions/fecff1c3da27_remove_extra_tracing_app_config_table .py +++ b/api/migrations/versions/fecff1c3da27_remove_extra_tracing_app_config_table .py @@ -47,4 +47,4 @@ def downgrade(): with op.batch_alter_table('dataset_permissions', schema=None) as batch_op: batch_op.drop_index('idx_dataset_permissions_tenant_id') - # ### end Alembic commands ### \ No newline at end of file + # ### end Alembic commands ### diff --git a/core/prompt/entities/advanced_prompt_entities.py b/core/prompt/entities/advanced_prompt_entities.py index 036a38c651..a642cbf459 100644 --- a/core/prompt/entities/advanced_prompt_entities.py +++ b/core/prompt/entities/advanced_prompt_entities.py @@ -14,4 +14,4 @@ class MemoryConfig(BaseModel): values["role_prefix"] = {} if "window" not in values: values["window"] = {} - return values \ No newline at end of file + return values diff --git a/dev/pytest/pytest_config_tests.py b/dev/pytest/pytest_config_tests.py index 53e7e7d354..0046197192 100644 --- a/dev/pytest/pytest_config_tests.py +++ b/dev/pytest/pytest_config_tests.py @@ -112,4 +112,4 @@ def test_yaml_config(): raise Exception("API and Docker Compose config sets are different") print("All tests passed!") if __name__ == "__main__": - test_yaml_config() \ No newline at end of file + test_yaml_config() diff --git a/sdks/python-client/dify_client/__init__.py b/sdks/python-client/dify_client/__init__.py index 6ef0017fee..6fa9d190e5 100644 --- a/sdks/python-client/dify_client/__init__.py +++ b/sdks/python-client/dify_client/__init__.py @@ -1 +1 @@ -from dify_client.client import ChatClient, CompletionClient, DifyClient \ No newline at end of file +from dify_client.client import ChatClient, CompletionClient, DifyClient diff --git a/sdks/python-client/dify_client/client.py b/sdks/python-client/dify_client/client.py index cbd918c9ff..9b6f78d093 100644 --- a/sdks/python-client/dify_client/client.py +++ b/sdks/python-client/dify_client/client.py @@ -394,4 +394,4 @@ class KnowledgeBaseClient(DifyClient): """ data = {"segment": segment_data} url = f"/datasets/{self._get_dataset_id()}/documents/{document_id}/segments/{segment_id}" - return self._send_request("POST", url, json=data, **kwargs) \ No newline at end of file + return self._send_request("POST", url, json=data, **kwargs) diff --git a/sdks/python-client/setup.py b/sdks/python-client/setup.py index 26b7d2496e..14d56d1089 100644 --- a/sdks/python-client/setup.py +++ b/sdks/python-client/setup.py @@ -21,4 +21,4 @@ setup( install_requires=["requests"], keywords="dify nlp ai language-processing", include_package_data=True, -) \ No newline at end of file +) diff --git a/sdks/python-client/tests/test_client.py b/sdks/python-client/tests/test_client.py index 5b35ea4029..e529e3e06d 100644 --- a/sdks/python-client/tests/test_client.py +++ b/sdks/python-client/tests/test_client.py @@ -231,4 +231,4 @@ class TestDifyClient(unittest.TestCase): response = self.dify_client.file_upload("test_user", files) self.assertIn("name", response.text) if __name__ == "__main__": - unittest.main() \ No newline at end of file + unittest.main() diff --git a/tests/unit_tests/events/test_provider_update_deadlock_prevention.py b/tests/unit_tests/events/test_provider_update_deadlock_prevention.py index bc1ec2cffe..e63505d660 100644 --- a/tests/unit_tests/events/test_provider_update_deadlock_prevention.py +++ b/tests/unit_tests/events/test_provider_update_deadlock_prevention.py @@ -195,4 +195,4 @@ class TestProviderUpdateDeadlockPrevention: handle(self.mock_message, application_generate_entity=self.mock_generate_entity) # Verify update was called assert mock_query.update.called - assert mock_db.session.commit.called \ No newline at end of file + assert mock_db.session.commit.called