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:
parent
bef5f13eaa
commit
ba23f93463
26 changed files with 438 additions and 368 deletions
|
|
@ -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
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue