presenton/electron/servers/fastapi/alembic.ini
sudipnext 024f174867 feat: add migration for theme column in presentations and enhance database migration handling
- Introduced a new Alembic migration to add a 'theme' column to the 'presentations' table.
- Updated migration scripts to handle unversioned databases more gracefully.
- Added a script for programmatically deleting local SQLite database files and running migrations.
- Enhanced database initialization logic to conditionally run migrations based on environment settings.
2026-03-25 20:09:35 +05:45

41 lines
802 B
INI

# Alembic configuration for CLI usage (e.g. alembic revision --autogenerate)
# migrations.py sets these programmatically when running at app startup.
[alembic]
script_location = %(here)s/alembic
# sqlalchemy.url is overridden by env.py (uses DATABASE_URL or APP_DATA_DIRECTORY)
sqlalchemy.url = sqlite:///placeholder
[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