mirror of
https://github.com/arc53/DocsGPT.git
synced 2026-05-07 06:30:03 +00:00
53 lines
1.0 KiB
INI
53 lines
1.0 KiB
INI
# Alembic configuration for the DocsGPT user-data Postgres database.
|
|
#
|
|
# The SQLAlchemy URL is deliberately NOT set here — env.py reads it from
|
|
# ``application.core.settings.settings.POSTGRES_URI`` so the same config
|
|
# source serves the running app and migrations. To run from the project
|
|
# root::
|
|
#
|
|
# alembic -c application/alembic.ini upgrade head
|
|
|
|
[alembic]
|
|
script_location = %(here)s/alembic
|
|
prepend_sys_path = ..
|
|
version_path_separator = os
|
|
|
|
# sqlalchemy.url is intentionally left blank — env.py supplies it.
|
|
sqlalchemy.url =
|
|
|
|
[post_write_hooks]
|
|
|
|
[loggers]
|
|
keys = root,sqlalchemy,alembic
|
|
|
|
[handlers]
|
|
keys = console
|
|
|
|
[formatters]
|
|
keys = generic
|
|
|
|
[logger_root]
|
|
level = WARNING
|
|
handlers = console
|
|
qualname =
|
|
|
|
[logger_sqlalchemy]
|
|
level = WARNING
|
|
handlers =
|
|
qualname = sqlalchemy.engine
|
|
|
|
[logger_alembic]
|
|
level = INFO
|
|
handlers =
|
|
qualname = alembic
|
|
|
|
[handler_console]
|
|
class = StreamHandler
|
|
args = (sys.stderr,)
|
|
level = NOTSET
|
|
formatter = generic
|
|
|
|
[formatter_generic]
|
|
format = %(levelname)-5.5s [%(name)s] %(message)s
|
|
datefmt = %H:%M:%S
|