Refactor code and fix database issues (#1484)

* Refactor chat.py for improved readability and maintainability

* Add imports and fix formatting issues

* Refactor database connection in Alembic env.py

* Add nullable columns to tables and fix foreign key constraint

* Update sqlalchemy logging level to DEBUG in alembic.ini

* Add connection and inspector objects for database reflection

* Refactor alembic initialization and migration process

* Refactor version option in main_entry_point function

* Remove pre-commit hook and format code

* Fix database inspector type hinting

* Add unique constraints and fix credential table
This commit is contained in:
Gabriel Luiz Freitas Almeida 2024-02-29 15:22:14 -03:00 • committed by GitHub
commit ba23f93463
No known key found for this signature in database
GPG key ID: B5690EEEBB952194
26 changed files with 438 additions and 368 deletions

View file

@ -4,6 +4,7 @@ from collections import namedtuple
import pytest
from fastapi.testclient import TestClient
from langflow.interface.tools.constants import CUSTOM_TOOLS
from langflow.processing.process import Result
from langflow.services.auth.utils import get_password_hash