Spaces:
Sleeping
Sleeping
| # ========================================== | |
| # IDENTITY: The Database Time Machine / Alembic Config | |
| # FILEPATH: backend/alembic.ini | |
| # COMPONENT: DB Migrations | |
| # ROLE: Tells Alembic where your Postgres database lives so it can upgrade/downgrade tables. | |
| # VIBE: Ctrl+Z for your database schemas. Absolute lifesaver. ⏪ | |
| # ========================================== | |
| [alembic] | |
| # Path to migration scripts | |
| script_location = alembic | |
| prepend_sys_path = . | |
| version_path_separator = os | |
| # We will override this in env.py with our actual settings, | |
| # but Alembic complains if it's completely empty here. | |
| sqlalchemy.url = postgresql+asyncpg://orbit_user:super_secret_password@localhost/orbit_db | |
| [post_write_hooks] | |
| [loggers] | |
| keys = root,sqlalchemy,alembic | |
| [handlers] | |
| keys = console | |
| [formatters] | |
| keys = generic | |
| [logger_root] | |
| level = WARN | |
| handlers = console | |
| qualname = | |
| [logger_sqlalchemy] | |
| level = WARN | |
| 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 |