mirror of
https://github.com/open-webui/open-webui
synced 2025-06-03 19:27:12 +00:00
fix: update comments for schema handling in SQLite and PostgreSQL
- Changed comment in db.py to clarify setting schema to None for SQLite. - Updated comment in env.py to specify that schema settings are applied only in PostgreSQL.
This commit is contained in:
parent
ea0f54064e
commit
de7ec73a47
@ -100,7 +100,7 @@ else:
|
||||
SessionLocal = sessionmaker(
|
||||
autocommit=False, autoflush=False, bind=engine, expire_on_commit=False
|
||||
)
|
||||
# SQLite를 사용하는 경우 스키마를 None으로 설정
|
||||
# Set schema to None if using SQLite
|
||||
if "sqlite" in SQLALCHEMY_DATABASE_URL:
|
||||
metadata_obj = MetaData(schema=None)
|
||||
else:
|
||||
|
@ -78,7 +78,7 @@ def run_migrations_online() -> None:
|
||||
|
||||
with connectable.connect() as connection:
|
||||
if target_metadata.schema and connection.dialect.name == 'postgresql':
|
||||
# PostgreSQL에서만 스키마 설정 적용
|
||||
# Applying schema settings only in PostgreSQL
|
||||
connection.execute(
|
||||
text(f"SET search_path TO {target_metadata.schema}, public")
|
||||
)
|
||||
|
Loading…
Reference in New Issue
Block a user