langflow-ai / langflow

Langflow is a low-code app builder for RAG and multi-agent AI applications. It’s Python-based and agnostic to any model, API, or database.
http://www.langflow.org
MIT License
35.94k stars 4.25k forks source link

refactor: Enhance migration script with column existence check and improved error handling #4680

Closed ogabrielluiz closed 1 week ago

ogabrielluiz commented 1 week ago

This pull request improves the migration script by adding a check for the existence of the "name" column before attempting to alter its properties. It also enhances error handling by removing unnecessary try-except blocks, ensuring that the migration process is more robust and reliable. The changes ensure that the column is only altered if it exists and meets the specified conditions.

codspeed-hq[bot] commented 1 week ago

CodSpeed Performance Report

Merging #4680 will improve performances by ×22

Comparing improve-migration-script (849800d) with main (c3dbabb)

Summary

⚡ 2 improvements ✅ 13 untouched benchmarks

Benchmarks breakdown

Benchmark main improve-migration-script Change
test_successful_run_with_input_type_any 298.1 ms 220.5 ms +35.16%
test_successful_run_with_output_type_any 5,026.3 ms 230.2 ms ×22